Skip to content

Instantly share code, notes, and snippets.

@psionski
Created October 8, 2014 20:03
Show Gist options
  • Save psionski/800775ee36120ea9f3b7 to your computer and use it in GitHub Desktop.
Save psionski/800775ee36120ea9f3b7 to your computer and use it in GitHub Desktop.
Hiding the first code block in an IPython Notebook
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "",
"signature": "sha256:96b7f29ecfd80a5cd20e059e5bbe217dc679d651c4e53104ac7a7fc7c1176a1b"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This box contains some JavaScript.\n",
"<script>\n",
"$(document).ready(function () { $('.code_cell:first').hide(); });\n",
"</script>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import sys\n",
"sys.path.insert(0, 'C:\\\\temp\\\\packages')"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import example"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Imported!\n"
]
}
],
"prompt_number": 2
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment