{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# This is an H1\n",
"## This is an H2\n",
"### This is an H3\n",
"#### This is an H4\n",
"##### This is an H5\n",
"###### This is an H6\n",
"\n",
"This is a block of text. \n",
"\n",
"- Here is a list\n",
"- of items\n",
"\n",
"\n",
"1. and\n",
"2. a few \n",
"3. numbers\n",
"\n",
"> this is a quote\n",
"\n",
"All you need to do is `pip install plotly` and then `import plotly.plotly as py`"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Emailing Plotly Graphs\n",
"\n",
"In the [Plotly Webapp](https://plotly.com/plot) you can share your graphs over email to your colleagues who are also Plotly members. If your making graphs periodically or automatically, e.g. [in Python with a cron job](http://moderndata.plot.ly/update-plotly-charts-with-cron-jobs-and-python/), it can be helpful to also share the graphs that you're creating in an email to your team.\n",
"\n",
"This notebook is a primer on sending nice HTML emails with *Plotly* **graphs** in Python. We use:\n",
"- [Plotly](https://plotly.com/python/) for interactive, web native graphs\n",
"- [IPython Notebook](https://plotly.com/ipython-notebooks) to create this notebook, combining text, HTML, and Python code\n",
"- [`smtplib` and `email`](https://docs.python.org/2/library/email-examples.html) libraries included in the Python standard library"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# This is a comment\n",
"from plotly.offline import iplot, init_notebook_mode"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"init_notebook_mode()"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"