|
126 | 126 | "source": [
|
127 | 127 | "## Install External Dependencies\n",
|
128 | 128 | "\n",
|
| 129 | + "Install required OS packages. These cannot be installed with pip. BUT they _can_ be installed with Conda. So we only need to install using a shell command if we're not using Conda.\n", |
| 130 | + "\n", |
129 | 131 | "- [ffmpeg](https://ffmpeg.org/): in order to render video output, i.e. for visualisations.\n",
|
130 | 132 | "- graphviz: for visualising graphs\n",
|
131 | 133 | "\n",
|
|
196 | 198 | "if is_connected():\n",
|
197 | 199 | " for app_install, app_exec in apps:\n",
|
198 | 200 | " if not check_installed(app_exec):\n",
|
199 |
| - " install_software(app_install)" |
| 201 | + " if not is_conda_available():\n", |
| 202 | + " # No Conda, so install manually\n", |
| 203 | + " install_software(app_install)" |
200 | 204 | ]
|
201 | 205 | },
|
202 | 206 | {
|
|
216 | 220 | " jupyterlab-lsp ipykernel ipywidgets \\\n",
|
217 | 221 | " matplotlib pandas networkx sympy scipy \\\n",
|
218 | 222 | " colorama python-dotenv tqdm \\\n",
|
219 |
| - " python-graphviz\n", |
| 223 | + " python-graphviz ffmpeg # Conda-only installs\n", |
220 | 224 | " else:\n",
|
221 | 225 | " print(\"Conda not installed. Installing with pip...\")\n",
|
222 | 226 | " %pip install --upgrade --no-cache-dir \\\n",
|
|
226 | 230 | " python-graphviz\n",
|
227 | 231 | " \n",
|
228 | 232 | " print(\"Installing with pip...\")\n",
|
229 |
| - " %pip install dazbo-commons\n", |
| 233 | + " %pip install dazbo-commons # Pip-only installs\n", |
230 | 234 | "else:\n",
|
231 | 235 | " print(\"Poor connectivity. Run when you're connected.\")"
|
232 | 236 | ]
|
|
0 commit comments