Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Feature: simplify loading notebooks from nbviewer or other sources #2985

Closed
michaelaye opened this Issue · 4 comments

3 participants

K.-Michael Aye Min RK Brian E. Granger
K.-Michael Aye

So there are bookmarklets and extensions to open your currently open gist or notebook in nbviewer, but I am still a bit hassled by the current procedure to get a nbviewer notebook to open in my local notebook:
1. Download Notebook
2. Safari goes on my nerves with attaching a .txt which I manually have to remove
3. Safari kills me by asking if I really want to do this.
4. Locate notebook file in Downloads folder
5. Drag it onto the notebook dashboard.

I would like something similar to these:

  • Something like the %load magic for external python scripts?
  • how about a place where I can paste the url to the notebook download in and the rest works automagically?
Min RK
Owner

Something like the %load magic for external python scripts?

This essentially already exists, because you can always do:

!curl -L -O https://raw.github.com/changhiskhan/talks/master/pydata2012/pandas_timeseries.ipynb

(or wget, however you like)

how about a place where I can paste the url to the notebook download in and the rest works automagically?

Adding an 'upload from url' dialog is valuable and easy, we should certainly do this.

K.-Michael Aye

Ok, but I don't think that's a fair comparison to %load, as I can use that remotely loaded script directly, while I can't use the .ipynb directly like this.
I'm glad you agree it's easy to add an upload from url button, as Brian suggested it might be 'out of scope' for the roadmap you designed? Would be a pity, because making it easy to spread the use of notebooks should be considered very important and valuable for the spread of python/IPython in general. The easier it gets, the more people get onboard.

Min RK
Owner

Ok, but I don't think that's a fair comparison to %load, as I can use that remotely loaded script directly, while I can't use the .ipynb directly like this.

%load downloads a file and sets it as input, whereas the curl call I made downloads an entire notebook, which is immediately available at the dashboard. If you want to clobber the current notebook with the downloaded notebook,
you can simply append > CurrentNotebookName.ipynb instead of -O, and refresh and you will be set. There isn't really an analog for %load that does much more than the curl call.

I'm glad you agree it's easy to add an upload from url button, as Brian suggested it might be 'out of scope' for the roadmap you designed?

Out of scope doesn't mean it won't get done - it just might be more appropriate to come from someone else (or while we are stuck / annoyed by our current task), particularly for small, self-contained tasks like a simple 'upload from url' button.

Brian E. Granger
Owner

Closing as duplicate of #4838

Brian E. Granger ellisonbg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.