Skip to content

Commit 2b4e80e

Browse files
committed
add a bokeh histogram
1 parent f6a4fe8 commit 2b4e80e

File tree

3 files changed

+78
-21
lines changed

3 files changed

+78
-21
lines changed

Examples.ipynb

Lines changed: 74 additions & 21 deletions
Large diffs are not rendered by default.

render.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"seaborn": "Seaborn",
2323
"plotnine": "plotnine",
2424
"ggplot": "ggplot2 (R)",
25+
"bokeh": "Bokeh",
2526
}
2627

2728
names = {
@@ -65,6 +66,7 @@ def image_from_cell(cell):
6566
def source_from_cell(cell):
6667
source = "".join(cell['source']).strip()
6768
source = source.replace(";", "")
69+
source = source.replace("Image(export_png(p))", "") # remove bokeh render
6870
if "%%R" in source:
6971
source = '\n'.join(source.split('\n')[1:])
7072
else:

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
bokeh
2+
selenium
13
ipython
24
pandas
35
jupyter

0 commit comments

Comments
 (0)