Q: How does Panel compare to other dashboarding libraries?įor a detailed comparison between Panel and other dashboarding libraries see the Comparisons page.Ī: Panel is built on infrastructure provided by Bokeh, specifically Bokeh’s model base classes, layouts, widgets, and (optionally) its server. If you want an even richer JavaScript-based representation where that’s supported by a library but not yet by Panel, it will be more difficult to add that, but you can see the pane.Bokeh class and the panel.holoviews and otly modules for examples. If it can return an image in any way, see the implementation as a starting point you just need to be able to call some method or function on the object to return an image, and the rest should be simple. Otherwise, adding support is quite easy for anything that can somehow return an image or some HTML. Try it! If it doesn’t have a rich display method, check to see if you can add one as a PR to that project – those representations are very useful for many cases other than Panel, too. If the object already has one of the usual IPython _repr_X_ rich display methods (where X is png, jpg, svg, or html), then it is very likely to work already. Q: How do I add support for a library or datatype not yet supported?Ī: It depends. Otherwise, just use any supported library that you prefer! If you want to tie custom actions to individual subelements of such a plot, you should use a library with extensive JavaScript support. That said, only certain libraries will provide deeply interactive objects in a web browser, such as Bokeh and Plotly. Q: Does it matter which plotting library I use with Panel?Ī: Yes and no! Just about any Python library will work with Panel. There is also a Github issue where possible types are discussed. Here is a list of questions we have either been asked by users or potential pitfalls we hope to help users avoid:Ī: The Panel Reference Guide shows examples of all the plotting libraries, data types, image formats, and other objects that can be used in a panel.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |