%s\" % cell.source)\n", + " display(HTML('\\n'.join(html)))\n", + "\n", + "show_notebook(os.path.join(\"nbimp\", \"mynotebook.ipynb\"))" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "html": [ + "
My Notebook\n", + "
def foo():\n",
+ " return "foo"\n",
+ "
def has_ip_syntax():\n",
+ " listing = !ls\n",
+ " return listing\n",
+ "
def whatsmyname():\n",
+ " return __name__\n",
+ "
This notebook just defines `bar`\n", + "
def bar(x):\n",
+ " return "bar" * x\n",
+ "