[IPython-dev] New IPEP for a multi-directory notebook in IPython

Brian Granger ellisonbg@gmail....
Thu Apr 11 23:14:15 CDT 2013


I should note that the *big* question this proposal brings back is the
notebook_id versus notebook title in the URL question.  It seems a
little sily to use a path in the URL but then finish it with a
notebook_id rather than a file name.  I would like to revisit this,
but there are some super subtle issues that come up.  In the course of
writing the notebook I actually tried 3 different times to put the
notebook titles in the URLs and failed.  We have more perspective now,
so we may be able to pull it off - not sure if we want to though...

It would be helpful if everyone could help post notes on the IPEP (at
the bottom) about where the difficulties with notebook names in URLs
lie.

Cheers,

Brian

On Thu, Apr 11, 2013 at 9:11 PM, Brian Granger <ellisonbg@gmail.com> wrote:
> Paul,
>
> The key is that matching arbitrary path sequences can't be done at the
> top level of the URL matching.
>
> If we use "/" as the top level dashboard, then the dashboards of subdirs are at:
>
> /foo/bar/bam
>
> And will need a regular expression that matches *any* path.  That
> means that any of our other URL patterns that begin with things like
> "notebooks", "kernels", "clusters" will be thrown for a loop if you
> have a directory with those names.  If we put our dahboards underneath
> some other prefix (such as /app), then the uRL pattern:
>
> /app/<path>
>
> Won't interfere with /notebooks, /kernels, etc.  Does this make sense?
>
> Cheers,
>
> Brian
>
> On Thu, Apr 11, 2013 at 6:14 PM, Paul Ivanov <pi@berkeley.edu> wrote:
>> Zachary Sailer, on 2013-04-11 17:34,  wrote:
>>> Hi everyone,
>>>
>>> Take a look at the new IPEP added to the IPython wiki page,
>>> IPEP 16: Notebook multi directory dashboard and URL mapping.
>>>
>>> https://github.com/ipython/ipython/wiki/IPEP-16%3A-Notebook-multi-directory-dashboard-and-URL-mapping
>>
>> Looks pretty good, Zach - I adjusted some wording to emphasize
>> just how bad the problem is (you have to restart the server, or
>> start a new one, not just a new dashboard).
>>
>> I'm a bit confused by the wording of 'notebooks' and 'app' -
>> where you says something about the possibility of having
>> a folder named 'notebooks' -- what if the user has a folder named
>> 'app'?
>>
>> best,
>> --
>> Paul Ivanov
>> http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> --
> Brian E. Granger
> Cal Poly State University, San Luis Obispo
> bgranger@calpoly.edu and ellisonbg@gmail.com



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com


More information about the IPython-dev mailing list