Figuring out Jupyter Notebook config

53 views
Skip to first unread message

Kyle Kelley

unread,
Oct 31, 2016, 6:32:14 PM10/31/16
to jup...@googlegroups.com
Does anyone know of a good way to dump the config of a notebook server (without the server running)?

I'm basically wanting to know what the config object would be after reading all the config files (system, user, etc.).


--
Kyle Kelley (@rgbkrklambdaops.com)

MinRK

unread,
Nov 1, 2016, 6:59:13 AM11/1/16
to Project Jupyter

There isn’t a good mechanism builtin. I’ve been using this script for a number of years to peek at config.

For simple cases, you can load individual config files with PyFileConfigLoader and dump the resulting config dict. But that doesn’t rigorously mimic the hierarchy of files that the application can load. To do that, you would need to run the full config-loading. Here is a script that runs through the full initialization of any traitlets.config.Application and dumps its config instead of starting.

We should probably add a similar config option to the base Application so that every descendant can easily do this.

-MinRK


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CA%2BtbMaWRgyeOsEd%2B7a8UHj3ewn0U%3DYFWG3wzB4aVbsuFCRGm4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Kyle Kelley

unread,
Nov 1, 2016, 12:05:47 PM11/1/16
to jup...@googlegroups.com
It would be cool to have this as base config. I'm primarily wanting this for testing Docker builds before promoting Docker images to production.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAHNn8BU3k7dT4kaXZ1_VNXtCCAK%2BREacr9M4L%2B1orJvh0juypg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages