embed_notebook

0th

Percentile

Embed a plotly figure as an iframe into a Jupyter Notebook

Embed a plotly figure as an iframe into a Jupyter Notebook

Usage
embed_notebook(x, width = NULL, height = NULL,
  file = paste0("plotlyJupyterHTML/", digest::digest(Sys.time()), ".html"))
Arguments
x

a plotly object

width

attribute of the iframe. If NULL, the width in plot_ly is used. If that is also NULL, '100%' is the default.

height

attribute of the iframe. If NULL, the height in plot_ly is used. If that is also NULL, '400px' is the default.

file

a filename for saving the standalone HTML (only used if x is a non-figure object)

Aliases
  • embed_notebook
Documentation reproduced from package plotly, version 4.5.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.