diff --git a/examples/workflow_by_code.ipynb b/examples/workflow_by_code.ipynb index ac653b080..5f456c66a 100644 --- a/examples/workflow_by_code.ipynb +++ b/examples/workflow_by_code.ipynb @@ -38,6 +38,9 @@ " # install qlib\n", " ! pip install --upgrade numpy\n", " ! pip install pyqlib\n", + " if 'google.colab' in sys.modules:\n", + " # The Google colab environment is a little outdated. We have to downgrade the pyyaml to make it compatible with other packages\n", + " ! pip install pyyaml==5.4.1\n", " # reload\n", " site.main()\n", "\n",