Skip to content

How to make any file open in the same tab when clicked from jupyter localhost window? #6740

Answered by ccalvocm
duruburak asked this question in Q&A
Discussion options

You must be logged in to vote

Greetings @duruburak

Yes, it is possible to configure Jupyter Notebook to open files in the same tab instead of a new tab. Here's how you can do it:

Open your Jupyter Notebook configuration file. You can do this by running the following command in your terminal: jupyter notebook --generate-config.

Find the line that starts with c.NotebookApp.browser. If this line is commented out (i.e., it starts with a #), remove the # to uncomment it.

  1. Add the following text to the end of the line: --new-window=False. This will tell Jupyter Notebook to open files in the same tab instead of a new tab.
  2. Save and close the configuration file.
  3. Restart your Jupyter Notebook server for the changes to take effect.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by duruburak
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants