question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve documentation for creating interactive plots in Notebook

See original GitHub issue

I’m trying to figure out how to create a fully interactive plots in Jupyter Notebook, with widgets, etc. I’ve spent several days going through the Bokeh documentation, trying to wrap my head around the paradigm. There seems to be three ways of doing this:

  • JS callbacks
  • Bokeh server
  • Embed Bokeh application in Notebook

I’m wondering why there’s not a more straight-forward way of doing this, though. The plots created with output_notebook are interactive, so that means there’s already an event loop there. Why can’t that be used for widget callbacks written in Python?

No so much a feature request as trying to fill in what appear to be gaps in the documentation. Maybe the gaps are for historical reasons, e.g. Bokeh evolved with Notebook support as an afterthought. I’m willing to help improve the Bokeh documentation for Notebook, if I can get clearer idea of how this all works, and why you can’t simply add widgets and callbacks in Notebook.

There doesn’t seem to be a fully featured Python plotting library that integrates well with Notebook, but Bokeh is the best candidate I’ve found. But, at present, it takes quite a bit of time in the documentation just to get started.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
orodbhencommented, Apr 30, 2018

@okomarov I only became aware of it after reading this blog post. The author points out that this feature is only available as of release 0.12.5. I think this information should be added to the docs, after confirming that it’s correct.

Posts on SO and blogs are great, but I wish more people would contribute to the actual docs.

1reaction
aavaniancommented, Apr 30, 2018

There are a few answers on SO that give examples of bokeh server within notebook. Here’s one I made sometime ago. Unfortunately I guess they tend to pop-up on specific use cases search rather than looking for notebook/server answers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interactive Controls in Jupyter Notebooks | by Will Koehrsen
In this article, we'll see how to get started with IPython widgets ( ipywidgets ), interactive controls you can build with one line...
Read more >
Interactive figures — Matplotlib 3.6.2 documentation
We recommend using IPython for an interactive shell. In addition to all of its features (improved tab-completion, magics, multiline editing, etc), it also ......
Read more >
Creating Interactive Dashboards from Jupyter Notebooks
This article discusses how to build an interactive dashboard to analyze reddit content and display interactive graphs of the result using ...
Read more >
How to create interactive plots in Python Jupyter Notebook?
In this tutorial, I will cover some examples of interactive data visualization with Plotly using ipywidgets. We will first import all the ...
Read more >
Making Interactive Matplotlib Plots for Data Science ... - YouTube
Please note, this doesn't make the entire plot interactive rather puts an interactive widget of matplotlib with features like Pan and Zoo …...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found