conjure-cp / conjure-notebook

3 stars 2 forks source link

Make install-colab.sh versioned #22

Closed ozgurakgun closed 1 year ago

ozgurakgun commented 1 year ago

We should have a way of maintaining backwards compatibility in notebooks.

We could modify install-colab.sh to be parameterised over the conjure-version and the extension version.

Do we need a similar script for other Jupyter environments?

ChrisJefferson commented 1 year ago

I'm using "pure" jupyter, and I do get an error when loading.

One sensible option would be to start making releases, and make install-colab.sh be auto-generated as part of the release process, hard-wiring the tag the release was created from (so it can then check out the right version)

ozgurakgun commented 1 year ago

This is done, but not fully automated. There is a github action which will create a release from a tag, but it requires manual editing of the version info first.

See readme for info on making a release.

When using it, we can specify a version now. This also pins down the Conjure version (and hence SR+solver versions as well).

Example:

!source <(curl -s https://raw.githubusercontent.com/conjure-cp/conjure-notebook/v0.0.2/scripts/install-colab.sh) %load_ext conjure

Can we create an install-jupyter.sh script that will do the setup for native/pure jupyter I wonder. That might be trickier since we would need to care about OS version etc.

Closing for now.