Wrong Technology

Use Bokeh in Nitro apps

Nitro v0.8 has an nifty little plugin mechanism to add new capabilities to Nitro while keeping the core compact. Hoping to get a modest Python plugin ecosystem going for using Pandas, matplotlib, etc.

Published a Bokeh plugin today: https://github.com/h2oai/nitro-bokeh

And here's the plugin in action:

Bokeh Plugin

Install

pip install h2o-nitro-bokeh

Usage

  1. Import the plugin:
from h2o_nitro_bokeh import bokeh_plugin, bokeh_box
  1. Register the plugin:
nitro = View(main, title='My App', caption='v1.0', plugins=[bokeh_plugin()])
  1. Use the plugin:
# Make a plot
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
p = figure(title="Simple line example", x_axis_label="x", y_axis_label="y")
p.line(x, y, legend_label="Temp.", line_width=2)

# Display the plot

view(bokeh_box(p))
« Introducing Nitro A Docker-like thing for apps »