[IPython-dev] changing working directory from IPython server
takowl at gmail.com
Fri Aug 8 13:51:41 EDT 2014
On 8 August 2014 07:00, Mark Bakker <markbak at gmail.com> wrote:
> What I do is click on 'To import a notebook, drag the file onto the
> listing below or *click here*. When I click there, a window pops up, I got
> to the directory with my ipython file, click on it, and then it shows up in
> the list of files, with next to it a blue Upload button. When I click on
> the Upload button the notebook is copied to the directory where I started
> the IPython Notebook.
> But I don't want to copy the Notebook to that directory (also cause the
> data files associated with the notebook are still in the old directory). Am
> I doing something wrong?
That is by design, though I agree that it's rather strange. An unfortunate
result of building the notebook as a browser UI and a web server is that
some parts behave like a desktop app, and some behave like a web app. The
original notion of files was designed like a web app - you upload files to
the server, and it works with the uploaded copy, ignoring the file it
originally came from (if it wasn't running locally, it wouldn't be able to
access the original file).
So don't upload notebooks. Start the notebook in the directory where your
notebooks are, or in a parent directory of that.
My nbopen tool helps with this - it opens a notebook in an already running
server, or starts a new one if necessary.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev