Is it possible to specify an ipython_config.py file programmatically?
12 views
Skip to first unread message
Alix Hamilton
unread,
Feb 5, 2019, 11:31:06 PM2/5/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Project Jupyter
I would like to use a custom ipython_config.py file for notebooks stored in a GitHub repo. I have a test file in the repo that runs the notebooks using the nbconvert ExecutePreprocessor. Right now, the test file temporarily updates the test runner's IPYTHONDIR environment variable during the test run, but I'd prefer to not do this because it seems hacky and I'm worried about editing other contributors' environment variables once others are running the tests. Is there any way to programmatically set the IPython directory or ipython_config.py path without environment variables? And/or is there any way to somehow pass the config to the preprocessor?