Skip to content

Commit

Permalink
Test jupyter notebook within sphinx documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
smelandr committed Oct 16, 2017
1 parent 1a21ac0 commit 950436f
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions docs/multiply.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Try to incorporate jupyter notebook into sphinx\n",
"\n",
"1. Install `sphinx`\n",
"2. Install `jupyter`\n",
"3. Install `nbsphinx` "
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"def multiply(a, b):\n",
" return a * b"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"15"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"multiply(3, 5)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 950436f

Please sign in to comment.