[IPython-dev] changing working directory from IPython server
ellisonbg at gmail.com
Mon Aug 11 17:10:35 EDT 2014
For security reasons we can't allow the notebook to browse to directories higher than it's starting directory. Thus, the only solution is to start the notebook from the highest directory you want to access notebooks from.
Given how the notebook works, I think that anaconda has made a less than ideal choice by not starting the notebook server in the users home directory.
Sent from my iPhone
> On Aug 11, 2014, at 4:56 PM, Mark Bakker <markbak at gmail.com> wrote:
> Sorry to keep pestering you with this, Brian.
> I explored it some more, and narrowed it down to the following.
> Let's say my notebook is in /mark/notebooks
> When I start ipython notebook in /mark, I can nicely click on the directory notebooks on the dashboard and open the notebook I want.
> If, on the other hand, I start ipython notebook in /mark/Documents. Then there is no way to 'surf' to the correct /mark/notebooks, as there is no cd.. place to click to go back to /mark and then to /mark/notebooks. When I do the 'To import a notebook, drag the file onto the listing below or *click here*' option, it only let's me 'upload' the selected notebook, which means copying to the directory where I started ipython notebook.
> The Anaconda guys run into exactly this problem, as their nice Notebook icon starts in /user/Documents/IPython_Notebooks, and you can only surf to a directory lower than that.
> So what I think we need is either a way to surf to a higher directory, or to have the option to 'click here' as it is now but then not being forced to 'upload' the notebook.
>> From: Brian Granger <ellisonbg at gmail.com>
>> Subject: Re: [IPython-dev] changing working directory from IPython
>> To: IPython developers list <ipython-dev at scipy.org>
>> <CAH4pYpTmjmdTpjbv3UKe=UdrTukpheV2hqcJeebH-zzuPdQ4wQ at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>> OK I think I understand, and I don't consider this a bug. If the
>> notebook you are starting out with is on the same machine, there is no
>> reason to "upload" that notebook. Just navigate the notebook dashboard
>> to the directory where that notebook already is and open it. Is there
>> some reason you can't do that and are instead trying to upload the
>> On Mon, Aug 11, 2014 at 1:11 PM, Mark Bakker <markbak at gmail.com> wrote:
>> > Thanks for considering this issue.
>> > The behavior now:
>> > I type: ipython notebook to start a notebook.
>> > At the dashboard, I 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 go to
>> > the directory with my notebook 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.
>> > The problem: The notebook gets copied to the directory where I started
>> > ipython notebook. That is not very useful, as all associated data files are
>> > still in the directory where the notebook originated.
>> > Does that make it clear? Should I file a bug report?
>> > Mark
>> > ps. It seems that the Anaconda guys are also expecting the behavior of the
>> > Notebook to change. They now have a useful 'start notebook' icon, but that
>> > starts in 'Documents/IPython Notebooks. And that faces the same problem as I
>> > described above.
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev