Skip to content

Commit

Permalink
Be compatible with Google Colab (microsoft#1188)
Browse files Browse the repository at this point in the history
* Update workflow_by_code.ipynb

* Update workflow_by_code.ipynb

* Update workflow_by_code.ipynb

* Update workflow_by_code.ipynb

* Update workflow_by_code.ipynb
  • Loading branch information
you-n-g authored Jul 8, 2022
1 parent a0c83d7 commit c34051c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/workflow_by_code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c34051c

Please sign in to comment.