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.

Testing the bokeh Elements tutorial and matching the original

See original GitHub issue

I think it would be great to just copy the current Elements tutorial, set hv.notebook_extension(bokeh=True) at the top and make it available on the website (the tutorials could then be called Elements [matplotlib] and Elements [bokeh]. This would achieve a few things:

  1. Show some official bokeh examples on or website.
  2. Show how easy it is to use the same code and switch backends.
  3. Test our bokeh support.
  4. Show people the full range of things that can be done with the bokeh backend.

The main issues I can see are:

  1. Setting this up on Travis (I think bokeh is already installed though).
  2. Getting display tests working for bokeh. This may be tricky if there is a fair bit of randomness (e.g uuids) in the bokeh output given the same input.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
jbednarcommented, Mar 16, 2017

Right; as discussed in https://github.com/ioam/holoviews/pull/1196 that’s the only non-3D Element not yet supported by the Bokeh backend.

1reaction
jlstevenscommented, Dec 21, 2015

The idea of setting up fallbacks in this way is one Philipp and I have toyed with but we aren’t completely convinced this is exactly the behavior we want. As it would also require some refactoring, this suggestion is something to think about after 1.4.1 is released.

For now what I have done (PR #374) is update notebook_extension to activate the last backend loaded in the resource list. As Jim noted, we can’t know the specified order left-to-right using the keyword syntax:

notebook_extension(bokeh=True, matplotlib=True)

But now you can pass kwargs which is shorter and preserves the order:

notebook_extension('bokeh', 'matplotlib')

In this case, BokehJS would be loaded and the matplotlib backend would remain active. Specified the other way round and the bokeh backend would be automatically activated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running tests — Bokeh 3.0.3 Documentation
Bokeh is a large, multi-language project and relies on complex and comprehensive tests and testing tools to help ensure consistency and prevent regressions....
Read more >
Python Data Visualization With Bokeh - YouTube
In this video we will get started with data visualization in Python by creating a top horsepower chart using the Bokeh ...
Read more >
Hands-On Tutorial: Bokeh Webapp - Dataiku Knowledge Base
In this tutorial, we'll create a simple Bokeh webapp in Dataiku. It's a scatter plot on sales data from the fictional Haiku T-shirt...
Read more >
Visualizing Data with Bokeh and Pandas
The ability to load raw data, sample it, and then visually explore and present it is a valuable skill across disciplines. In this...
Read more >
Understanding Bokeh | B&H eXplora
Specular out-of-focus highlights have appeared in photographs since the first photos were taken through lenses. In 1997, Photo Techniques ...
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