Created
February 19, 2013 03:21
-
-
Save minrk/4982809 to your computer and use it in GitHub Desktop.
Instead of https://raw.github.com/minrk/ipython_extensions/master/gist.py the location for the raw .py file is now at https://raw.githubusercontent.com/minrk/ipython_extensions/master/extensions/gist.py
The link GH provides when viewing gist.py
(as nice HTML) is https://github.com/minrk/ipython_extensions/raw/master/extensions/gist.py which redirects to the raw.githubusercontent.com domain. Maybe the former is slightly less fragile?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would probably use $.getScript('/static/.js') to load the extension as a separate file (then you just have a bunch of getScript in your custom.js) and listen for the 'notebook.loaded' instead of a timeout.
And this
IPython.notebook.get_cell(-1).set_text(code);
IPython.notebook.get_cell(-1).execute();
can probably directly execute on the kernel without going though a cell.