Skip to content

Instantly share code, notes, and snippets.

@DRosenman
Created December 9, 2017 00:07
Show Gist options
  • Save DRosenman/c7064d420625c0b9cc31a1e3a0964739 to your computer and use it in GitHub Desktop.
Save DRosenman/c7064d420625c0b9cc31a1e3a0964739 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"%%html\n",
"<div>\n",
" <a href=\"https://plot.ly/~ekirzhner/6/\" target=\"_blank\" title=\"Plot 6\" style=\"display: block; text-align: center;\"><img src=\"https://plot.ly/~ekirzhner/6.png\" alt=\"Plot 6\" style=\"max-width: 100%;width: 600px;\" width=\"600\" onerror=\"this.onerror=null;this.src='https://plot.ly/404.png';\" /></a>\n",
" <script data-plotly=\"ekirzhner:6\" src=\"https://plot.ly/embed.js\" async></script>\n",
"</div>\n"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<iframe width=\"900\" height=\"800\" frameborder=\"0\" scrolling=\"no\" src=\"//plot.ly/~ekirzhner/6.embed\"></iframe>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import IPython\n",
"iframe = '<iframe width=\"900\" height=\"800\" frameborder=\"0\" scrolling=\"no\" src=\"//plot.ly/~ekirzhner/6.embed\"></iframe>'\n",
"IPython.display.HTML(iframe)"
]
}
],
"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.6.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment