From a8a156936dfcaef8d5480fc46d64bdb6e0985c70 Mon Sep 17 00:00:00 2001 From: Dominic Thorn Date: Wed, 7 Apr 2021 23:15:22 +0100 Subject: [PATCH] Update example --- docs/examples/iris.ipynb | 43 ++-------------------------------------- 1 file changed, 2 insertions(+), 41 deletions(-) diff --git a/docs/examples/iris.ipynb b/docs/examples/iris.ipynb index 7d3e9e4..9f6f430 100644 --- a/docs/examples/iris.ipynb +++ b/docs/examples/iris.ipynb @@ -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": { @@ -1931,4 +1892,4 @@ }, "nbformat": 4, "nbformat_minor": 1 -} +} \ No newline at end of file