An Unpolished Notebook

This notebook contains visible code blocks and other Jupyter elements. It's fine for some situations, but may not be appropriate for a polished presentation to a non-technical audience. To see how to make this look more polished, see my blog post.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

In [3]:
import plotly
import plotly.graph_objs as go
import string
import numpy as np
plotly.offline.init_notebook_mode() 

x = np.random.randn(26)
y = x + np.random.randn(26)
labels = ['Observation ' + c for c in list(string.ascii_uppercase)]

trace = go.Scatter(
    x=x,
    y=y,
    mode='markers',
    marker=dict(size='13'),
    text=labels,
    hoverinfo='text',
    name="Sample Data",
)

fig = dict(data=[trace], layout={})
fig['layout']['xaxis'] = dict(title='Variable X')
fig['layout']['yaxis'] = dict(title='Variable Y')
 
plotly.offline.iplot(fig, show_link=False)