notebook
notebook copied to clipboard
Create New Notebook button does not create a notebook in the same directory
Description
In the notebook main page, when I go click File -> New -> Notebook, the notebook will be created in the base directory (which the directory where the jupyter notebook command was used) but not in the directory where the current notebook is, like the way it used to be.
Reproduce
- Launch Jupyter Notebook at directory /home (or anywhere else is fine)
- Click any directory in /home directory (in the notebook page on browser), say FolderA.
- Open an existing notebook (or, you can just create a notebook in the folder)
- In the main header of the opened notebook, select File -> New -> Notebook
- a new notebook will be created, but in the base directory i.e. in /home, and not at /home/FolderA, which is how it used to work (and this makes more sense)
Context
- Operating System and version: Windows 11 (happens on MacOS too)
- Browser and version: Chrome
- Jupyter Notebook version: 7.1.0
This flow to create a notebook works as expected in JupyterLab, it opens the new notebook in the expected subfolder.
Would Like to Take take this up, if no one is working on it currently. Also does some one have any context which file or function is responsible for Opening new Notebook
on Menu Option click.
Thanks @jayeshsingh9767!
which file or function is responsible for Opening
new Notebook
on Menu Option click.
It is probably upstream in JupyterLab: https://github.com/jupyterlab/jupyterlab
Hii, @jtpio
Please explain how to modify the 'command' attribute for 'File->New->Notebook' in the schema file. I have created a new entry in the submenu called 'Notebook-resolved,' but I want to replace the existing 'Notebook' option with this new entry as you can observe in the below image.