Skip to content

Commit e326fd2

Browse files
author
Ioannis Giagkiozis
committed
experimental jupyter support
1 parent f72e61c commit e326fd2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plotly/src/plot.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ impl Plot {
256256
}
257257
}
258258

259+
pub fn show_jupyter(&self) {
260+
let html = self.to_inline_html(None);
261+
println!("EVCXR_BEGIN_CONTENT text/html\n{}\nEVCXR_END_CONTENT", html);
262+
}
263+
259264
/// Saves the `Plot` to the selected image format.
260265
#[cfg(feature = "kaleido")]
261266
pub fn save<P: AsRef<Path>>(

0 commit comments

Comments
 (0)