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

Cannot control working directory #8

Open
goerz opened this issue Jun 1, 2014 · 1 comment
Open

Cannot control working directory #8

goerz opened this issue Jun 1, 2014 · 1 comment

Comments

@goerz
Copy link

goerz commented Jun 1, 2014

When starting a server, the working directory appears to be something completely arbitrary. I would be nice to be able to set it explicitly.

@mangecoeur
Copy link
Owner

The recommended way of doing it at this point is to create an IPython profile and set the working directory for the notebooks there. In IPython 2.0+ the setting is:

c.NotebookApp.notebook_dir='path/to/working/dir'
In the file ipython_notebook_config.py in the profile directory (you can look up how to create profiles in the ipython docs).

When you set the command, simply add --profile=profilename (obviously changing the profile name as appropriate).

At the moment there isn't a way to dynamically set the working directory when you start the server, but I could look into adding this. So far the idea has been to rely as much as possible on existing mechanisms in IPython for doing things and so avoid having to maintain too much custom code. What I am considering is adding a wizard for creating and managing ipython profiles to make it easier to switch between them. (Following the philosophy of using the desktop interface to do things you can't easily do with the existing NB server)

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