Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Jun 26, 2024
1 parent e5eafc6 commit 5861322
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/PD_controller.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
" !apt install xvfb\n",
" clear_output()\n",
"\n",
"if IS_COLAB or IS_RTD:\n",
" # Start Xvfb and set \"DISPLAY\" environment variable\n",
" import pyvirtualdisplay\n",
"\n",
Expand Down Expand Up @@ -163,12 +162,12 @@
"import subprocess\n",
"\n",
"\n",
"if IS_COLAB:\n",
"if IS_COLAB or IS_RTD:\n",
" if subprocess.run(\"ffmpeg -version\", shell=True).returncode:\n",
" !command -v ffmpeg >/dev/null || (apt update && apt install -y ffmpeg)\n",
" clear_output()\n",
"\n",
" if subprocess.run(\"nvidia-smi\").returncode:\n",
" if IS_COLAB and subprocess.run(\"nvidia-smi\").returncode:\n",
" raise RuntimeError(\n",
" \"Cannot communicate with GPU. \"\n",
" \"Make sure you are using a GPU Colab runtime. \"\n",
Expand Down

0 comments on commit 5861322

Please sign in to comment.