notebook
notebook copied to clipboard
New file is not opening in same tab
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.
can you resolve this problem?
@raekcya make sure that you point Jupyter to the /home/.jupyter
folder.
- 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
- 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
If using a docker container, place the file (COPY) in /root/.jupyter/custom/custom.js
prior to launching the notebook server.