forked from plotly/plotly.R
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed_notebook.Rd
More file actions
25 lines (21 loc) · 838 Bytes
/
embed_notebook.Rd
File metadata and controls
25 lines (21 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.R
\name{embed_notebook}
\alias{embed_notebook}
\title{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{
\item{x}{a plotly object}
\item{width}{attribute of the iframe. If \code{NULL}, the width in
\code{plot_ly} is used. If that is also \code{NULL}, '100\%' is the default.}
\item{height}{attribute of the iframe. If \code{NULL}, the height in
\code{plot_ly} is used. If that is also \code{NULL}, '400px' is the default.}
\item{file}{a filename for saving the standalone HTML
(only used if x is a non-figure object)}
}
\description{
Embed a plotly figure as an iframe into a Jupyter Notebook
}