notebook icon indicating copy to clipboard operation
notebook copied to clipboard

New file is not opening in same tab

Open rajeshtva opened this issue 4 years ago • 3 comments

I want to configure settings in custom.js to load any file in the same tab. so I followed instructions in this link. https://github.com/jupyter/notebook/issues/4115 and tried to do the following https://github.com/jupyter/notebook/issues/4115#issuecomment-431352139. but i am not sure how to do it. i simply tried to copy-paste it in /home/.jupyter/custom/custom.js but it didn't work. I didn't get things mentioned in this link: https://github.com/jupyter/notebook/pull/4120#issuecomment-431353383. Not sure how to do it.

Anaconda is fully updated. Thanks.

rajeshtva avatar Oct 15 '19 12:10 rajeshtva

can you resolve this problem?

bobah101 avatar Mar 20 '20 10:03 bobah101

@raekcya make sure that you point Jupyter to the /home/.jupyter folder.

  1. Check Jupyter's default configuration directory by running this code in a cell:
from jupyter_core.paths import jupyter_config_dir
jupyter_dir = jupyter_config_dir()
jupyter_dir
  1. If the returned value isn't /home/.jupyter, then set the environment variable:
export $JUPYTER_CONFIG_DIR = "/home/.jupyter"

Sources: https://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/JavaScript%20Notebook%20Extensions.html#custom.js

https://jupyter.readthedocs.io/en/latest/use/jupyter-directories.html

nduckwiler avatar Dec 17 '21 16:12 nduckwiler

If using a docker container, place the file (COPY) in /root/.jupyter/custom/custom.js prior to launching the notebook server.

kliment-slice avatar Aug 22 '22 22:08 kliment-slice