From 8e633858aee6ad51e3479e4ac90e5f5c96d5d0ad Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Thu, 29 Aug 2024 09:57:30 -0400 Subject: [PATCH 1/3] fix version pin: cudf_pandas_opencellid_demo.ipynb --- getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb b/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb index 4441baa..cb7fbb7 100644 --- a/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb +++ b/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb @@ -53,7 +53,7 @@ "outputs": [], "source": [ "# Install required packages\n", - "! pip install -q hvplot pydeck panel holoviews=1.18.3" + "! pip install -q hvplot pydeck panel holoviews==1.18.3" ] }, { From a63484e59a5274a56db57d49aadc38ccaf1e66ce Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Thu, 29 Aug 2024 10:22:00 -0400 Subject: [PATCH 2/3] check if download is needed --- .../cudf_pandas_opencellid_demo.ipynb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb b/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb index cb7fbb7..dfd6648 100644 --- a/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb +++ b/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb @@ -100,8 +100,23 @@ "metadata": {}, "outputs": [], "source": [ - "# For Google Colab, download the script from a GitHub repository by uncommenting the line below\n", - "# !wget https://raw.githubusercontent.com/rapidsai-community/showcase/main/getting_started_tutorials/opencellid_downloader.py" + "import os\n", + "import subprocess\n", + "\n", + "file_name = \"opencellid_downloader.py\"\n", + "file_url = f\"https://raw.githubusercontent.com/rapidsai-community/showcase/main/getting_started_tutorials/{file_name}\"\n", + "\n", + "if os.path.exists(file_name):\n", + " print(f\"The file '{file_name}' exists in the current directory.\")\n", + "else:\n", + " print(f\"The file '{file_name}' does not exist in the current directory. Downloading it now...\")\n", + " try:\n", + " subprocess.run([\"wget\", file_url], check=True)\n", + " print(f\"Successfully downloaded '{file_name}'.\")\n", + " except subprocess.CalledProcessError as e:\n", + " print(f\"Failed to download the file. Error: {e}\")\n", + " except FileNotFoundError:\n", + " print(\"The 'wget' command is not found. Please ensure it's installed and in your system PATH.\")" ] }, { From ed6485f906b2117ef2009d404670cfc728138d53 Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Thu, 19 Sep 2024 16:04:33 -0400 Subject: [PATCH 3/3] Update getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb Co-authored-by: Ajay Thorve --- getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb b/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb index dfd6648..2311940 100644 --- a/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb +++ b/getting_started_tutorials/cudf_pandas_opencellid_demo.ipynb @@ -53,7 +53,7 @@ "outputs": [], "source": [ "# Install required packages\n", - "! pip install -q hvplot pydeck panel holoviews==1.18.3" + "! pip install -q hvplot pydeck panel jupyter_bokeh holoviews==1.18.3" ] }, {