Interactive Plotting


In [ ]:
# uncomment for wider display:
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:95% !important; }</style>"))

In [ ]:
%%time
from functools import partial
import pandas as pd

import interactive_plotting as ip

from bokeh.resources import INLINE
from bokeh.io import show, output_notebook

from bokeh.application.handlers import FunctionHandler
from bokeh.application import Application

In [ ]:
%%time
# reverse the commented line below for offline, online...

#output_notebook(INLINE)
output_notebook()

In [ ]:
%%time
proposal = 'p1'
df = pd.read_pickle('dill/ds_' + proposal + '.pkl')

In [ ]:
%%time
handler = FunctionHandler(partial(ip.bk_basic_interactive,
                                  df=df,
                                  plot_height=550, plot_width=750
                                 ))

In [ ]:
%%time
app = Application(handler)
show(app)

In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]:


In [ ]: