\n",
"```python\n",
"print \"Hello World\"\n",
"```\n",
"\n",
"```javascript\n",
"console.log(\"Hello World\")\n",
"```\n",
"\n",
"\n",
"Gives \n",
"```python\n",
"print \"Hello World\"\n",
"```\n",
"\n",
"```javascript\n",
"console.log(\"Hello World\")\n",
"```\n",
"\n",
"And a table like this : \n",
"\n",
"\n",
"| This | is |\n",
"|------|------|\n",
"| a | table| \n",
"
\n",
"\n",
"A nice Html Table\n",
"\n",
"| This | is |\n",
"|------|------|\n",
"| a | table| "
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"General HTML"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Because Markdown is a superset of HTML you can even add things like HTML tables:\n",
"\n",
"\n",
"\n",
"Header 1 | \n",
"Header 2 | \n",
"
\n",
"\n",
"row 1, cell 1 | \n",
"row 1, cell 2 | \n",
"
\n",
"\n",
"row 2, cell 1 | \n",
"row 2, cell 2 | \n",
"
\n",
"
"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Local files"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you have local files in your Notebook directory, you can refer to these files in Markdown cells directly:\n",
"\n",
" [subdirectory/]\n",
"\n",
"For example, in the images folder, we have the Python logo:\n",
"\n",
" \n",
"\n",
"\n",
"\n",
"and a video with the HTML5 video tag:\n",
"\n",
" \n",
"\n",
"\n",
"\n",
"These do not embed the data into the notebook file, and require that the files exist when you are viewing the notebook."
]
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Security of local files"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Note that this means that the IPython notebook server also acts as a generic file server\n",
"for files inside the same tree as your notebooks. Access is not granted outside the\n",
"notebook folder so you have strict control over what files are visible, but for this\n",
"reason it is highly recommended that you do not run the notebook server with a notebook\n",
"directory at a high level in your filesystem (e.g. your home directory).\n",
"\n",
"When you run the notebook in a password-protected manner, local file access is restricted\n",
"to authenticated users unless read-only views are active."
]
}
],
"metadata": {}
}
]
}