Hello, nbpresent!


In [ ]:
import nbpresent
nbpresent.__version__

My First NB Presentation

Steven C. Howell

6 Jan 2017

Contents go here:

  • statements
  • questions
  • answers

here is an image

Skip this cell.

Here's our logo (hover to see the title text):

Inline-style:

Reference-style:

Here is some important code:


In [12]:
import numpy as np
x = np.linspace(0, 2*np.pi, 100)
y = np.sin(x)

In [10]:
from bokeh.plotting import figure
from bokeh.io import output_notebook, show
output_notebook()


Loading BokehJS ...

In [13]:
p = figure(title='sine function', x_axis_label='x',
           y_axis_label='y', plot_height=300,
           plot_width=300)
p.line(x, y, line_width=2)
show(p)


Live code ?!?!?


In [25]:
# print('can I live code here?')
p_test = figure(plot_width=300, plot_height=300, title='live code plot')
plot_data = np.vstack((x, np.cos(x))).T
print(plot_data)
p_test.line(plot_data[:, 0], plot_data[:, 1])
show(p_test)


[[ 0.          1.        ]
 [ 0.06346652  0.99798668]
 [ 0.12693304  0.99195481]
 [ 0.19039955  0.9819287 ]
 [ 0.25386607  0.9679487 ]
 [ 0.31733259  0.95007112]
 [ 0.38079911  0.92836793]
 [ 0.44426563  0.90292654]
 [ 0.50773215  0.87384938]
 [ 0.57119866  0.84125353]
 [ 0.63466518  0.80527026]
 [ 0.6981317   0.76604444]
 [ 0.76159822  0.72373404]
 [ 0.82506474  0.67850941]
 [ 0.88853126  0.63055267]
 [ 0.95199777  0.58005691]
 [ 1.01546429  0.52722547]
 [ 1.07893081  0.47227107]
 [ 1.14239733  0.41541501]
 [ 1.20586385  0.35688622]
 [ 1.26933037  0.29692038]
 [ 1.33279688  0.23575894]
 [ 1.3962634   0.17364818]
 [ 1.45972992  0.1108382 ]
 [ 1.52319644  0.04758192]
 [ 1.58666296 -0.01586596]
 [ 1.65012947 -0.07924996]
 [ 1.71359599 -0.14231484]
 [ 1.77706251 -0.20480667]
 [ 1.84052903 -0.26647381]
 [ 1.90399555 -0.32706796]
 [ 1.96746207 -0.38634513]
 [ 2.03092858 -0.44406661]
 [ 2.0943951  -0.5       ]
 [ 2.15786162 -0.55392006]
 [ 2.22132814 -0.60560969]
 [ 2.28479466 -0.65486073]
 [ 2.34826118 -0.70147489]
 [ 2.41172769 -0.74526445]
 [ 2.47519421 -0.78605309]
 [ 2.53866073 -0.82367658]
 [ 2.60212725 -0.85798341]
 [ 2.66559377 -0.88883545]
 [ 2.72906028 -0.91610846]
 [ 2.7925268  -0.93969262]
 [ 2.85599332 -0.95949297]
 [ 2.91945984 -0.97542979]
 [ 2.98292636 -0.98743889]
 [ 3.04639288 -0.99547192]
 [ 3.10985939 -0.99949654]
 [ 3.17332591 -0.99949654]
 [ 3.23679243 -0.99547192]
 [ 3.30025895 -0.98743889]
 [ 3.36372547 -0.97542979]
 [ 3.42719199 -0.95949297]
 [ 3.4906585  -0.93969262]
 [ 3.55412502 -0.91610846]
 [ 3.61759154 -0.88883545]
 [ 3.68105806 -0.85798341]
 [ 3.74452458 -0.82367658]
 [ 3.8079911  -0.78605309]
 [ 3.87145761 -0.74526445]
 [ 3.93492413 -0.70147489]
 [ 3.99839065 -0.65486073]
 [ 4.06185717 -0.60560969]
 [ 4.12532369 -0.55392006]
 [ 4.1887902  -0.5       ]
 [ 4.25225672 -0.44406661]
 [ 4.31572324 -0.38634513]
 [ 4.37918976 -0.32706796]
 [ 4.44265628 -0.26647381]
 [ 4.5061228  -0.20480667]
 [ 4.56958931 -0.14231484]
 [ 4.63305583 -0.07924996]
 [ 4.69652235 -0.01586596]
 [ 4.75998887  0.04758192]
 [ 4.82345539  0.1108382 ]
 [ 4.88692191  0.17364818]
 [ 4.95038842  0.23575894]
 [ 5.01385494  0.29692038]
 [ 5.07732146  0.35688622]
 [ 5.14078798  0.41541501]
 [ 5.2042545   0.47227107]
 [ 5.26772102  0.52722547]
 [ 5.33118753  0.58005691]
 [ 5.39465405  0.63055267]
 [ 5.45812057  0.67850941]
 [ 5.52158709  0.72373404]
 [ 5.58505361  0.76604444]
 [ 5.64852012  0.80527026]
 [ 5.71198664  0.84125353]
 [ 5.77545316  0.87384938]
 [ 5.83891968  0.90292654]
 [ 5.9023862   0.92836793]
 [ 5.96585272  0.95007112]
 [ 6.02931923  0.9679487 ]
 [ 6.09278575  0.9819287 ]
 [ 6.15625227  0.99195481]
 [ 6.21971879  0.99798668]
 [ 6.28318531  1.        ]]

That was great!


In [ ]:


In [ ]:


In [ ]: