Joel
Joel

Reputation: 1690

Change Jupyter notebook config directory

How to change jupyter config location other than /home/username directory?

I can use following to create config in normal circumstances. But for a special purpose, /home directory of the account I'm using doesn't exist and I cannot create one.

--generate-config generate default config file

Upvotes: 5

Views: 3968

Answers (1)

smac89
smac89

Reputation: 43088

According to the docs

On linux, you can change the default config folder by setting the environment variable: JUPYTER_CONFIG_DIR. (Set it in your ~/.profile for bash users or ~/.zprofile for zsh users to have it persist across sessions).

Next, run

jupyter notebook --generate-config

to generate the default notebook config in the new config folder

Upvotes: 4

Related Questions