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

Commit

Permalink
fix notebooks to work in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswex committed May 8, 2019
1 parent 3b63677 commit 98deabb
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 288 deletions.
464 changes: 219 additions & 245 deletions colab_facets.ipynb

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions facets_dive/Dive_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
"from IPython.core.display import display, HTML\n",
"\n",
"# Create Facets template \n",
"HTML_TEMPLATE = \"\"\"<link rel=\"import\" href=\"/nbextensions/facets-dist/facets-jupyter.html\">\n",
"HTML_TEMPLATE = \"\"\"\n",
" <script src=\"https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.24/webcomponents-lite.js\"></script>\n",
" <link rel=\"import\" href=\"/nbextensions/facets-dist/facets-jupyter.html\">\n",
" <facets-dive sprite-image-width=\"{sprite_size}\" sprite-image-height=\"{sprite_size}\" id=\"elem\" height=\"600\"></facets-dive>\n",
" <script>\n",
" document.querySelector(\"#elem\").data = {jsonstr};\n",
Expand All @@ -80,21 +82,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 2",
"language": "python",
"name": "python3"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"pygments_lexer": "ipython2",
"version": "2.7.16"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 98deabb

Please sign in to comment.