-
Notifications
You must be signed in to change notification settings - Fork 18
Links and notebooks/files #158
Comments
In (1), do you envision the url remaining the path to the file? If so, it I'm fine having a GET request tell JupyterLab what file to open by default. On Fri, Apr 8, 2016 at 12:57 AM Brian E. Granger notifications@github.com
|
On Thu, Apr 7, 2016 at 11:07 PM, Jason Grout notifications@github.com
A couple of way so handling this:
Once we get the basic stuff, working with file linking, we should just play Brian E. Granger |
To keep the discussion organized, I'll copy here what I'd posted in #159... Reasons to want a stable URL for a notebook: this makes it easy to have something to bookmark for often-used notebooks, to reload one open notebook in a different browser (crash, suspected browser bug, etc), or to reload across server sessions (common while developing). I agree that in a full multi-tab Lab page with potentially many notebooks open, having a URL for the whole page shouldn't reflect one of the notebooks. But I think that in a possibly maximized mode, or other single-notebook mode, the URL should be stable and reflect that open notebook. I suspect one that this is a use case that, if we break it, we'll anger quite a few folks... |
Hi, any update regarding this request? it is actually a nice feature to have to ease the navigation through different notebooks. |
Hi @razaina, this work has moved to JupyterLab. Links between local documents are supported in JupyterLab 0.15, opening a document by url is tracked here: jupyterlab/jupyterlab#1075. |
One of the core features of the notebook is that notebooks can link through relative links to other notebooks. This allows notebooks to function as proper webpages that can be linked to by other notebooks as well as other web pages. We use this capability ourself in our own docs here:
http://nbviewer.jupyter.org/github/ipython/ipython/blob/4.0.x/examples/IPython%20Kernel/Index.ipynb
Notice that first page has links that are all links to other notebooks in that directory. These links work across the live notebook server, GitHub's rendering and nbviewer. Given this, JupyterLab can't break this critical feature.
Here are some initial thoughts on how we can offer this:
./lab/the/path/notebook.ipynb
) should simply open the default JupyterLab view, open the file browser to that path, and then open that notebook in the dock panel. This may require a slight bit of server logic to handle those paths.a
tag and preventing default and triggering the document open action with that path. Again, the file browser should go to that directory.The text was updated successfully, but these errors were encountered: