Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
superleesa opened this issue Feb 18, 2024 · 3 comments

Comments

@superleesa
Copy link

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 superleesa added bug status:Needs Triage Applied to issues that need triage labels Feb 18, 2024
@RRosio RRosio added regression and removed status:Needs Triage Applied to issues that need triage labels Feb 20, 2024
@RRosio
Copy link
Collaborator

RRosio commented Feb 20, 2024

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

@jayeshsingh9767
Copy link
Contributor

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.

@jtpio
Copy link
Member

jtpio commented May 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants