Skip to content
This repository was archived by the owner on Jul 27, 2024. It is now read-only.

Commit 98deabb

Browse files
committed
fix notebooks to work in firefox
1 parent 3b63677 commit 98deabb

File tree

3 files changed

+243
-288
lines changed

3 files changed

+243
-288
lines changed

colab_facets.ipynb

Lines changed: 219 additions & 245 deletions
Large diffs are not rendered by default.

facets_dive/Dive_demo.ipynb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
"from IPython.core.display import display, HTML\n",
5858
"\n",
5959
"# Create Facets template \n",
60-
"HTML_TEMPLATE = \"\"\"<link rel=\"import\" href=\"/nbextensions/facets-dist/facets-jupyter.html\">\n",
60+
"HTML_TEMPLATE = \"\"\"\n",
61+
" <script src=\"https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.24/webcomponents-lite.js\"></script>\n",
62+
" <link rel=\"import\" href=\"/nbextensions/facets-dist/facets-jupyter.html\">\n",
6163
" <facets-dive sprite-image-width=\"{sprite_size}\" sprite-image-height=\"{sprite_size}\" id=\"elem\" height=\"600\"></facets-dive>\n",
6264
" <script>\n",
6365
" document.querySelector(\"#elem\").data = {jsonstr};\n",
@@ -80,21 +82,21 @@
8082
],
8183
"metadata": {
8284
"kernelspec": {
83-
"display_name": "Python 3",
85+
"display_name": "Python 2",
8486
"language": "python",
85-
"name": "python3"
87+
"name": "python2"
8688
},
8789
"language_info": {
8890
"codemirror_mode": {
8991
"name": "ipython",
90-
"version": 3
92+
"version": 2
9193
},
9294
"file_extension": ".py",
9395
"mimetype": "text/x-python",
9496
"name": "python",
9597
"nbconvert_exporter": "python",
96-
"pygments_lexer": "ipython3",
97-
"version": "3.5.2"
98+
"pygments_lexer": "ipython2",
99+
"version": "2.7.16"
98100
}
99101
},
100102
"nbformat": 4,

0 commit comments

Comments
 (0)