mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Make clearml installation in jupyter notebooks optional
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user