how to make jupyterlab see other directory
// To open jupyter lab with new directory
jupyter lab --notebook-dir "C:\name_of_dir"
0
0
There are two ways to do even though they have only very small difference. Follow the way marneylc suggested above: i.e.
1) Open "Anaconda Prompt" and type jupyter notebook --generate-config
2) You find the file in C:\Users\username\.jupyter\jupyter_notebook_config.py
3) Change the line of #c.NotebookApp.notebook_dir = '' to c.NotebookApp.notebook_dir = 'c:\test\your_root\'
4) Then, go to the shortcut of Jupyter Notebook located in C:\Users\User_name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)
5) Do the right click and go to the Properties
6) In the Target field, remove %USERPROFILE% as stenlytw suggested above.
7) Then, In the field of Start in, type the same directory of c:\test\your_root\ in jupyter_notebook_config.py
8) Done!
As the simpler way, after step 3, go to C:\Users\User_name\Anaconda3\Scripts
4-2) You can see the file of jupyter-notebook.exe and click it.
5-2) Then, the Jupyter start the folder you specified in jupyter_notebook_config.py. So make the shortcut of this file.
6-2) Done.
Thank you!
0
0
Are there any code examples left?
New code examples in category Python
-
Python 2023-04-11 03:04:20
-
Python 2022-03-27 22:40:04 pycharm no module named
-
Python 2022-03-27 22:25:05 assign multiple variablesin one line
-
Python 2022-03-27 22:20:02 levenshtein distance
-
Python 2022-03-27 21:35:09 get text from url python last slash
-
Python 2022-03-27 21:30:30 df concatenate df
-
Python 2022-03-27 21:25:09 python odd or even
-
Python 2022-03-27 21:15:32 python include function from another file
-
Python 2022-03-27 21:10:01 color module python
-
Python 2022-03-27 21:00:27 python tkinter cursor types