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

Commit

Permalink
Fix Colab issues for 1.1 and 1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
fa9r committed Oct 13, 2022
1 parent 904844b commit a5cbaa8
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 3 deletions.
15 changes: 14 additions & 1 deletion 1-1_Pipelines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,20 @@
"metadata": {},
"outputs": [],
"source": [
"!zenml up"
"from zenml.environment import Environment\n",
"\n",
"def start_zenml_dashboard(port=8237):\n",
" if Environment.in_google_colab():\n",
" from pyngrok import ngrok\n",
"\n",
" public_url = ngrok.connect(port)\n",
" print(f\"\\x1b[31mIn Colab, use this URL instead: {public_url}!\\x1b[0m\")\n",
" !zenml up --blocking --port {port}\n",
"\n",
" else:\n",
" !zenml up --port {port}\n",
"\n",
"start_zenml_dashboard()"
]
},
{
Expand Down
10 changes: 10 additions & 0 deletions 1-2_Artifact_Lineage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@
"To illustrate, let us first rebuild our digits pipeline from the previous lesson:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!rm -rf .zen\n",
"!zenml init"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
10 changes: 10 additions & 0 deletions 2-1_Experiment_Tracking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
"Next, let's import our pipeline definition and some of the pipeline steps that we built in the previous lessons:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!rm -rf .zen\n",
"!zenml init"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
10 changes: 10 additions & 0 deletions 2-2_Local_Deployment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
" !mv zenbytes/pipelines ."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!rm -rf .zen\n",
"!zenml init"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 5 additions & 2 deletions 2-3_Inference_Pipelines.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@
]
},
{
"cell_type": "markdown",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"**Note:** If you get an error `NoSuchProcess: process no longer exists (pid=...)` when running the following cell, simply run the cell again."
"!rm -rf .zen\n",
"!zenml init"
]
},
{
Expand Down
10 changes: 10 additions & 0 deletions 3-1_Data_Skew.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@
"Let's define this pipeline in code and import the other steps (which we have already built during previous lessons):"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!rm -rf .zen\n",
"!zenml init"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
Binary file modified _assets/1-1/view_run_in_dashboard.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a5cbaa8

Please sign in to comment.