Skip to content

Instantly share code, notes, and snippets.

@ayorgo
Last active June 28, 2023 09:47
Show Gist options
  • Save ayorgo/3c2af50c2885b1b81b66c41603f461b2 to your computer and use it in GitHub Desktop.
Save ayorgo/3c2af50c2885b1b81b66c41603f461b2 to your computer and use it in GitHub Desktop.
# Interesting way of calling pip from inside python
# Source: https://colab.research.google.com/github/cleanlab/cleanlab-docs/blob/master/v2.4.0/tutorials/datalab/tabular.ipynb
if "google.colab" in str(get_ipython()): # Check if it's running in Google Colab
%pip install cleanlab==v2.4.0
cmd = ' '.join([dep for dep in dependencies if dep != "cleanlab"])
%pip install $cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment