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.

Objects produced by renderer.get_plot do not display in the notebook

See original GitHub issue

Since holoviews 1.9.10, this code

import holoviews as hv
hv.extension("bokeh")
renderer = hv.renderer("bokeh")
curve = hv.Curve(range(10))
curve_plot = renderer.get_plot(curve)
curve_plot

yields a text output instead of the proper figure:

CurvePlot(apply_extents=True, apply_ranges=True, bgcolor=None, border=10, default_tools=[‘save’, ‘pan’, ‘wheel_zoom’, ‘box_zoom’, ‘reset’], finalize_hooks=[], fontsize={‘title’: ‘12pt’}, gridstyle={}, height=300, interpolation=‘linear’, invert_axes=False, invert_xaxis=False, invert_yaxis=False, labelled=[‘x’, ‘y’], lod={‘factor’: 10, ‘interval’: 300, ‘threshold’: 2000, ‘timeout’: 500}, logx=False, logy=False, name=‘CurvePlot01090’, normalize=True, projection=None, shared_axes=True, shared_datasource=True, show_frame=True, show_grid=False, show_legend=True, show_title=True, sizing_mode=‘fixed’, title_format=‘{label} {group} {dimensions}’, toolbar=‘right’, tools=[], width=300, xaxis=‘bottom’, xrotation=None, xticks=None, yaxis=‘left’, yrotation=None, yticks=None)

It seems to work neither with matplotlib backend nor with other types of figures.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Apr 20, 2018

Usage would be as follows:

obj = hv.Curve([1, 2, 3])
plot = hv.renderer('bokeh').get_plot(obj)
hv.ipython.display(plot)
0reactions
philippjfrcommented, Apr 20, 2018

The change to allow the display function to display plots is now merged so I’ll close this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plotly output generated with 'notebook' renderer not shown ...
Actual behaviour. The ouput is blank after re-opening a notebook that contains cell output using the Plotly 'notebook' renderer. The graphs are shown...
Read more >
prevent plot from showing in jupyter notebook - Stack Overflow
I want a's to be plotted and shown and I don't want the b plots to be shown, I just want them them...
Read more >
Pluto plots with PlotlyBase/PlotlyJS with working static html ...
Hi everyone, I recently wanted to use PlotlyJS directly in Pluto and still be able to view the plots in the static html...
Read more >
Working with Plot and Renderers — HoloViews v1.15.3
Working with a Renderer​​ In case of the matplotlib backend this is a Figure object. However the Renderer ignores the specific representation of...
Read more >
Displaying figures in Python - Plotly
The current and available renderers are configured using the plotly.io.renderers configuration object. Display this object to see the current default renderer ...
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