{ "cells": [ { "cell_type": "raw", "metadata": { "deletable": true, "editable": true }, "source": [ "\n", "\n", "\n", "\n", "
\n", "\n", "
" ] }, { "cell_type": "raw", "metadata": { "deletable": true, "editable": true }, "source": [ "\n", "
" ] }, { "cell_type": "markdown", "metadata": { "deletable": true, "editable": true }, "source": [ "

A Polished Notebook

\n", "\n", "This Jupyter presentation looks nice. Because it hides many of the Jupyter elements and makes code visibility optional (see button on top), it is appropriate for non-technical audiences or for those who just want a quick summary of your results. For instructions on how to do this, see my [blog post](http://chris-said.io/2016/02/13/how-to-make-polished-jupyter-presentations-with-optional-code-visibility/).\n", "\n", "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.\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false, "deletable": true, "editable": true }, "outputs": [ { "data": { "text/html": [ "" ], "text/vnd.plotly.v1+html": [ "" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "data": [ { "hoverinfo": "x+text", "marker": { "size": "13" }, "mode": "markers", "name": "Sample Data", "text": [ "Observation A", "Observation B", "Observation C", "Observation D", "Observation E", "Observation F", "Observation G", "Observation H", "Observation I", "Observation J", "Observation K", "Observation L", "Observation M", "Observation N", "Observation O", "Observation P", "Observation Q", "Observation R", "Observation S", "Observation T", "Observation U", "Observation V", "Observation W", "Observation X", "Observation Y", "Observation Z" ], "type": "scatter", "x": [ 0.2392243686500616, 0.9275517562628447, -1.181464378612536, -0.971393912302206, 0.6561567142049427, 0.20313533575585363, 1.4327428139243483, 2.1525639905433858, -0.08759061241162307, 0.14332544960595048, 0.7990048829118269, 0.5642888328899512, -0.0433546090319533, 0.0854812237062133, 0.6767478536752247, -1.0553077226804173, 1.3650535376624648, -1.5812187881137731, -1.1812176843023152, -0.5373904477543149, 1.238464676244475, 1.765677428607547, -1.2010142004149338, -1.8909311985564257, 0.647866605721092, -1.841996360232712 ], "y": [ -0.1421568644559897, -0.6494180671104751, -0.13230946436523383, -1.5361025028825637, 0.589340719120799, -1.6204222471993592, 1.0235601293905936, 2.477825277588333, -1.0464050681585992, 0.18072558138831085, -0.5105992498250488, 0.18098360073532677, -2.0467782852845633, -0.9351572324941071, 1.6447744039793646, 0.42994878612420306, 2.3516458196550505, -0.8329100674160528, -2.0952047842064006, -0.9781055183242546, 0.08471439836148198, 2.3470821703520794, 0.14089323793295905, -0.8423178648160761, 1.5895492769431403, -1.907597005867153 ] } ], "layout": { "xaxis": { "title": "Variable X" }, "yaxis": { "title": "Variable Y" } } }, "text/html": [ "
" ], "text/vnd.plotly.v1+html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import plotly\n", "import plotly.graph_objs as go\n", "import string\n", "import numpy as np\n", "plotly.offline.init_notebook_mode() \n", "\n", "x = np.random.randn(26)\n", "y = x + np.random.randn(26)\n", "labels = ['Observation ' + c for c in list(string.ascii_uppercase)]\n", "\n", "trace = go.Scatter(\n", " x=x,\n", " y=y,\n", " mode='markers',\n", " marker=dict(size='13'),\n", " text=labels,\n", " hoverinfo='x+text',\n", " name=\"Sample Data\",\n", ")\n", "\n", "fig = dict(data=[trace], layout={})\n", "fig['layout']['xaxis'] = dict(title='Variable X')\n", "fig['layout']['yaxis'] = dict(title='Variable Y')\n", " \n", "plotly.offline.iplot(fig, show_link=False)" ] }, { "cell_type": "markdown", "metadata": { "deletable": true, "editable": true }, "source": [ "

Conclusion

\n", "\n", "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?" ] }, { "cell_type": "raw", "metadata": { "deletable": true, "editable": true }, "source": [ "\n", "\n", "" ] } ], "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.0" } }, "nbformat": 4, "nbformat_minor": 0 }