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

Question about jupyter_notebook_config.py #18

Closed
paulnakroshis opened this issue Oct 23, 2018 · 2 comments
Closed

Question about jupyter_notebook_config.py #18

paulnakroshis opened this issue Oct 23, 2018 · 2 comments

Comments

@paulnakroshis
Copy link

paulnakroshis commented Oct 23, 2018

I am psyched to try out the Jupterlab templates!
I had one question—when you say

"""
...and add the following to jupyter_notebook_config.py

c.JupyterLabTemplates.template_dirs = ['list', 'of', 'template', 'directories']
"""

Do I need to create a jupiter_notebook_config.py file myself? If I look in my home
directory, I see a .jupyter folder, but not existing jupiter_notebook_config.py file anywhere on my system.

I’m guessing that I should just create the file and add a line like

c.JupyterLabTemplates.template_dirs = [‘~.jupyter/templates/‘]

Is that the case?

@timkpaine
Copy link
Member

Your configuration should be stored in jupyter --config-dir. If you don't have a config file in that folder, following these instructions you should be able to generate one with jupyter notebook --generate-config.

Once you've done that, simple add the line you suggest to the bottom of the new jupyter_notebook_config.py file in your config directory. For common templates, a folder like ~.jupyter/templates is a good idea.

@paulnakroshis
Copy link
Author

Great! Thanks. Created my folder per your instructions and everything seems to work. Thanks!

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

No branches or pull requests

2 participants