Skip to content

Commit

Permalink
Merge pull request #11 from domvwt/develop
Browse files Browse the repository at this point in the history
Update example
  • Loading branch information
domvwt authored Apr 7, 2021
2 parents 37fe526 + a8a1569 commit 448a74b
Showing 1 changed file with 2 additions and 41 deletions.
43 changes: 2 additions & 41 deletions docs/examples/iris.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1862,47 +1862,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Click the link below to view the page."
"Check your current working directory for the finished report!"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "bL6TP-7ZJcPr",
"outputId": "93902d16-9c5b-4a96-9909-c79d80621017"
},
"outputs": [],
"source": [
"# Ignore this!\n",
"msg = \"Page link:\"\n",
"if 'google.colab' in str(get_ipython()):\n",
" from google.colab.output import eval_js\n",
" page_link = f\"{eval_js('google.colab.kernel.proxyPort(8000)')}{page_name}\"\n",
" es.Markdown(f\"[{page_link}]({page_link})\").display()\n",
" print(\"(Interrupt the kernel to stop the http server process when you're done)\")\n",
" !python -m http.server 8000 > /dev/null 2>&1\n",
"elif os.environ.get(\"BINDER_SERVICE_HOST\"):\n",
" import socket\n",
" hash_id = socket.gethostname()[-8:]\n",
" page_link = f\"https://hub-binder.mybinder.ovh/user/domvwt-esparto-{hash_id}/view/docs/examples/iris-report.html\"\n",
" es.Markdown(f\"[{page_link}]({page_link})\").display()\n",
"else:\n",
" page_link = \"./iris-report.html\"\n",
" es.Markdown(f\"[{page_link}]({page_link})\").display()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "EU7pFEIHR1Im"
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down Expand Up @@ -1931,4 +1892,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}

0 comments on commit 448a74b

Please sign in to comment.