How to import "chesterish" theme from Jupyter Notebook to JupyterLab? - jupyter-notebook

How do I add the "chesterish" theme from Jupyter Notebook (jt -t chesterish) to JupyterLab? I have found other Dark themes (here),(here), but I cannot seem to find chesterish anywhere for Jupyter Lab.

Related

Jupyter notebook files association missing in Pycha

I have problem with missing association of Jupyter Notebook files in PyCharm.
There is a fix for that here:
Go to: Preferences | Editor | File Types
Click on Jupyter Notebook & add .ipynb to the file name patters.
Unfortunately it works only until I restart PyCharm. After that the association is missing again.

modifying main menu of jupyter lab

I'm trying to modify the main menu of jupyter lab through jupyterlab extension. What I want to do is to remove or collapse all tabs into one. As I didn't find any explanation on that I tried to follow a tutorial to work with menu tabs: https://github.com/jupyterlab/extension-examples/tree/master/main-menu
However, I'm not being able to reproduce it. I run these commands on the terminal (inside the main-menu folder):
python -m pip install -e .
# install your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# build the TypeScript source after making changes
jlpm run build
# start JupyterLab
jupyter lab
But the "Main Menu Example" tab never appears.
What could it be? some cache information that I need to clean?

start jupyter lab in different folder (windows)

For jupyter notebooks, I can do:
jupyter notebook --ExtractOutputPreprocessor.enabled=False --notebook-dir C:/Bla
so I tried something similar for jupyter lab:
jupyter lab --app-dir C:/Bla
but get:
JupyterLab Error
JupyterLab application assets not found in "C:/Bla"
Please run `jupyter lab build` or use a different app directory
I did a few google searches without a clear answer. Could someone please enlighten me? Thanks.
Don't use --app-dir - this is for custom deployments of JupyterLab.
notebook-dir should work fine, as well as ServerApp.root_dir:
jupyter lab --notebook-dir C:/Bla
or
jupyter lab --ServerApp.root_dir C:/Bla
Unless you have a very old version of JupyterLab installed (in that case - upgrade).

How to change Users folders in jupyter notebook and jupyterlab?

I have a question about jupyter notebook and jupyter lab and anaconda?
Does someone knows how to change the users folder from User a to b as an example?
I mean like I have 2 users in my PC and I want to use my secondary users folder in jupyter notebook and jupyterlab instead of my primary user folder.
Thank you
Create custom launching scripts for each user. The working directory can be set for jupyter lab using command line parameters:
jupyterlab --NotebookApp.notebook_dir=<directory_name>
(or using Jupyter config).
See related answer for the post: (How to change the Jupyter start-up folder)[https://stackoverflow.com/a/45515095/3247880]

Download actual notebook from JupyterLab

In classic Jupyter Notebook File -> Download as has a Notebook (.ipynb) option to download the original notebook source.
JupyterLab only seems to have File -> Export Notebook As ... only offers non Notebook options. Is there a simple way to download the actual notebook from JupyterLab
In Jupyter Lab, on the left side, there is tab "Files", which will show the directory structure. In that, right click on the Jupyter Notebook and there would be a option to download it.

Resources