The full plotly.js JavaScript library bundle is added to the notebook the first time a figure is rendered, so this renderer will work without an Internet connection. This renderer is intended for use in the classic Jupyter Notebook (not JupyterLab). Interactive renderers display figures using the plotly.js JavaScript library and are fully interactive, supporting pan, zoom, hover tooltips, etc. In this section, we will describe the built-in renderers so that you can choose the one(s) that best suit your needs. These functions have been reimplemented using the renderers framework and are still supported for backward compatibility, but they will not be discussed here. Note: The renderers framework is a generalization of the and functions that were the recommended way to display figures prior to plotly.py version 4. After that, we will describe all of the built-in renderers and discuss why you might choose to use each one. Next, we will show how to configure the default renderer. These contexts include the classic Jupyter Notebook, JupyterLab, Visual Studio Code notebooks, Google Colaboratory, Kaggle notebooks, Azure notebooks, and the Python interactive shell.Īdditional contexts are supported by choosing a compatible renderer including the IPython console, QtConsole, Spyder, and more. In many contexts, an appropriate renderer will be chosen automatically and you will not need to perform any additional configuration. Second, plotly.py must be running from within an IPython kernel. First, the last expression in a cell must evaluate to a figure. To be precise, figures will display themselves using the current default renderer when the two following conditions are true. With either approach, plotly.py will display the figure using the current default renderer(s). show() method on a graph object figure, or pass the figure to the plotly.io.show function. To display a figure using the renderers framework, you call the. The renderers framework is a flexible approach for displaying plotly.py figures in a variety of contexts. Displaying Figures Using The renderers Framework ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |