Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create meta function to install necessary packages and resources to run in colab #58

Open
jtmiclat opened this issue Jun 29, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@jtmiclat
Copy link
Contributor

jtmiclat commented Jun 29, 2022

Currently we are installing a bunch of things within notebooks just so it works in collab

"# hide\n",
"# no_test\n",
"! [ -e /content ] && pip install -Uqq git+https://github.com/thinkingmachines/geowrangler.git\n",
"! [ -e /content ] && pip install -Uqq git+https://github.com/butchland/nbdev.git@add-black-format\n",
"# downgrade tornado if in colab\n",
"! [ -e /content ] && pip install -Uqq tornado==5.1.0"

Is this something we should keep doing?

@jtmiclat jtmiclat changed the title Determine how much complexity it is to run non-tutorial notebooks in collab and decide if it is worth keeping in the notebook. Decide if it is worth keeping collab specific code in the notebook just for it to run non tutorial notebooks Jun 29, 2022
@jtmiclat jtmiclat changed the title Decide if it is worth keeping collab specific code in the notebook just for it to run non tutorial notebooks Decide if it is worth keeping collab specific code in non tutorial notebooks just for it to run in collab Jun 29, 2022
@tm-kah-alforja tm-kah-alforja moved this to Todo in Geowrangler Jun 29, 2022
@jtmiclat jtmiclat changed the title Decide if it is worth keeping collab specific code in non tutorial notebooks just for it to run in collab Create meta function to install necessary packages and resources to run in colab Jun 30, 2022
@jtmiclat jtmiclat assigned jtmiclat and unassigned jtmiclat Jul 1, 2022
@butchtm
Copy link
Collaborator

butchtm commented Jul 1, 2022

Related to this, I found that we could simplify the generation of the colab link in the docs from manually specifying in each notebook to just adding an entry in the docs/_config.yml file.

default_badges:
  colab: true

I can start a PR to start cleaning up the notebooks.

@butchtm butchtm added the documentation Improvements or additions to documentation label Jul 1, 2022
@tm-kah-alforja tm-kah-alforja moved this from Todo to In Progress in Geowrangler Jul 4, 2022
@tm-kah-alforja tm-kah-alforja moved this from In Progress to Backlog (Features and Enhancements) in Geowrangler Aug 16, 2022
@tm-kah-alforja tm-kah-alforja moved this from Backlog (Features and Enhancements) to For GeoWrangler Code Camp in Geowrangler Oct 4, 2022
@tm-kah-alforja tm-kah-alforja moved this from For GeoWrangler Code Camp - Easy to Backlog (Features and Enhancements) in Geowrangler Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Backlog (Features and Enhancements)
Development

No branches or pull requests

2 participants