Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for multiple display output formats in the notebook #355
This PR address issue #351 and makes our display system even more flexible.
You can now enable multiple display formats simultaneously (default is HTML only as before). For instance, you can now set:
This will display everything as normal, but also render and save PNG data (for elements) into the notebook so that it can be used by nbconvert. As extra rendering is done, running the notebook is slower and of course HoloMaps cannot be exported as PNG unless you select a single frame to display.
You can also do:
Which will force you to address HoloMaps for nbconvert and will also be faster to render. That said, your output will no longer be nicely centered due to how IPython displays images (out of our control).
The 'html' format is supported by everything but any other format is backend dependent. For instance, if you switch to Bokeh and ask for PNGs, you'll get text reprs instead (Bokeh currently doesn't export to PNG).
pushed a commit
this pull request
Dec 13, 2015
Just tested it using Atom and Hydrogen, with both 'png' and 'svg', it displays plots nicely! Even the magics work.
PS: In case you're not familiar, the watch list on the right updates every time you execute code on the left. So you can watch some variable by wrapping it in a holoviews object in the watch pane.
referenced this pull request
Dec 13, 2015
I think in this case the question is about the HoloViews widgets.
A while back I do think I got a slider working with hydrogen. I can try again but my worry is that if I do get it working, none of us use hydrogen to make sure anything we add to HoloViews stays working and supported.