Skip to content

Instantly share code, notes, and snippets.

@asears
Created January 12, 2016 18:50
Show Gist options
  • Save asears/114b9a3f310f405197c0 to your computer and use it in GitHub Desktop.
Save asears/114b9a3f310f405197c0 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"trusted": true,
"collapsed": false
},
"cell_type": "code",
"source": "import notebook.nbextensions\nnotebook.nbextensions.install_nbextension('https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/gist.js', user=True)",
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"text": "downloading https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/gist.js to c:\\users\\andrew~1.sea\\appdata\\local\\temp\\tmp0ds31c\\gist.js\ncopying c:\\users\\andrew~1.sea\\appdata\\local\\temp\\tmp0ds31c\\gist.js -> C:\\Users\\Andrew.Sears\\AppData\\Roaming\\jupyter\\nbextensions\\gist.js\n",
"name": "stdout"
}
]
},
{
"metadata": {
"trusted": true,
"collapsed": false
},
"cell_type": "code",
"source": "%%javascript\nJupyter.utils.load_extensions('gist')",
"execution_count": 2,
"outputs": [
{
"output_type": "display_data",
"data": {
"application/javascript": "Jupyter.utils.load_extensions('gist')",
"text/plain": "<IPython.core.display.Javascript object>"
},
"metadata": {}
}
]
},
{
"metadata": {
"trusted": true,
"collapsed": true
},
"cell_type": "code",
"source": "",
"execution_count": null,
"outputs": []
}
],
"metadata": {
"kernelspec": {
"name": "python2",
"display_name": "Python 2",
"language": "python"
},
"language_info": {
"mimetype": "text/x-python",
"nbconvert_exporter": "python",
"name": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10",
"file_extension": ".py",
"codemirror_mode": {
"version": 2,
"name": "ipython"
}
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment