Make clearml installation in jupyter notebooks optional

This commit is contained in:
Alex Burlacu
2023-04-03 18:30:57 +03:00
parent 202d93ce21
commit f9b370b947
18 changed files with 157 additions and 85 deletions

View File

@@ -26,8 +26,16 @@
},
"outputs": [],
"source": [
"!pip install clearml\n",
"!pip install numpy\n",
"# If you don't have ClearML installed then uncomment this line\n",
"# !pip install clearml"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install seaborn"
]
},
@@ -62,7 +70,7 @@
"from clearml import Task\n",
"\n",
"# Start a new task\n",
"task = Task.init(project_name=\"Colab notebooks\", task_name=\"Matplotlib example\")\n"
"task = Task.init(project_name=\"Colab notebooks\", task_name=\"Matplotlib example\")"
]
},
{
@@ -94,7 +102,7 @@
"colors = np.random.rand(N)\n",
"area = (30 * np.random.rand(N))**2 # 0 to 15 point radii\n",
"plt.scatter(x, y, s=area, c=colors, alpha=0.5)\n",
"plt.show()\n"
"plt.show()"
]
},
{
@@ -235,4 +243,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}