notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Create New Notebook button does not create a notebook in the same directory

Open superleesa opened this issue 5 months ago • 4 comments

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

image

  1. Launch Jupyter Notebook at directory /home (or anywhere else is fine)
  2. Click any directory in /home directory (in the notebook page on browser), say FolderA.
  3. Open an existing notebook (or, you can just create a notebook in the folder)
  4. In the main header of the opened notebook, select File -> New -> Notebook
  5. 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

superleesa avatar Feb 18 '24 14:02 superleesa

This flow to create a notebook works as expected in JupyterLab, it opens the new notebook in the expected subfolder.

RRosio avatar Feb 20 '24 17:02 RRosio

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.

jayeshsingh9767 avatar Apr 22 '24 12:04 jayeshsingh9767

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

jtpio avatar May 01 '24 15:05 jtpio