Skip to content

Instantly share code, notes, and snippets.

@parente
Last active January 27, 2016 14:18
Show Gist options
  • Save parente/587e2bc8b335e90d890b to your computer and use it in GitHub Desktop.
Save parente/587e2bc8b335e90d890b to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {},
"cell_type": "markdown",
"source": "# HOWTO gist\n\nUsing minrk's gist extension."
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "import notebook.nbextensions",
"execution_count": 4,
"outputs": []
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "notebook.nbextensions.install_nbextension('https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/gist.js', user=True)",
"execution_count": 5,
"outputs": [
{
"text": "downloading https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/gist.js to /tmp/tmpvleoz37l/gist.js\ncopying /tmp/tmpvleoz37l/gist.js -> /home/jovyan/.local/share/jupyter/nbextensions/gist.js\n",
"name": "stdout",
"output_type": "stream"
}
]
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "%%javascript\nJupyter.utils.load_extensions('gist')",
"execution_count": 6,
"outputs": [
{
"metadata": {},
"data": {
"application/javascript": "Jupyter.utils.load_extensions('gist')",
"text/plain": "<IPython.core.display.Javascript object>"
},
"output_type": "display_data"
}
]
},
{
"metadata": {
"collapsed": true,
"trusted": true
},
"cell_type": "code",
"source": "",
"execution_count": null,
"outputs": []
}
],
"metadata": {
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"language_info": {
"mimetype": "text/x-python",
"name": "python",
"codemirror_mode": {
"version": 3,
"name": "ipython"
},
"file_extension": ".py",
"version": "3.4.4",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment