You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with the current master branch of pymc3 and I'm trying to use the nbsample in my jupyter notebook.
I've installed ipywidgets with conda install -c conda-forge ipywidgets and called the nbsample with:
with model:
trace = nbsample(2000, step, start=start) # draw 2000 posterior samples using NUTS sampling
it raises the following:
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-6-5a8793f1d005> in <module>()
1 with model:
----> 2 trace = nbsample(2000, step, start=start) # draw 2000 posterior samples using NUTS sampling
e:\git_pkgs\pymc3-dev\pymc3\interactive_sampling.pyc in nbsample(draws, step, start, trace, chain, tune, model, random_seed)
78 assert(hasattr(IPython.get_ipython(), 'comm_manager'))
79 except (AssertionError, NameError, KeyError) as e:
---> 80 raise NotImplementedError(_no_notebook_error_message)
81
82 display.display_html(_javascript, raw=True)
NotImplementedError: nbsample can only be run inside IPython Notebook.
it seems that the assertion assert(hasattr(interactive_sampling.IPython.get_ipython(), 'comm_manager')) fails.
The text was updated successfully, but these errors were encountered:
I'm working with the current master branch of pymc3 and I'm trying to use the nbsample in my jupyter notebook.
I've installed ipywidgets with
conda install -c conda-forge ipywidgets
and called thenbsample
with:it raises the following:
it seems that the assertion
assert(hasattr(interactive_sampling.IPython.get_ipython(), 'comm_manager'))
fails.The text was updated successfully, but these errors were encountered: