More changes to example notebooks.

This commit is contained in:
Brian Granger 2012-10-22 20:55:50 -07:00
parent 7cca8cecfa
commit 83406924f1

View File

@ -168,7 +168,7 @@
"level": 2,
"metadata": {},
"source": [
"LaTeX Equations"
"LaTeX equations"
]
},
{
@ -210,6 +210,59 @@
"</tr>\n",
"</table>"
]
},
{
"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 via relative URLs that are prefixed with `files/`:\n",
"\n",
" files/[subdirectory/]<filename>\n",
"\n",
"For example, in the example Notebook folder, we have the Python logo:\n",
"\n",
" <img src=\"files/python-logo.svg\" />\n",
"\n",
"<img src=\"/files/python-logo.svg\" />\n",
"\n",
"and a video with the HTML5 video tag:\n",
"\n",
" <video controls src=\"files/animation.m4v\" />\n",
"\n",
"<video controls src=\"/files/animation.m4v\" />\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": {}