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

Tutorial is outdated #107

Open
KeShih opened this issue Aug 30, 2024 · 8 comments
Open

Tutorial is outdated #107

KeShih opened this issue Aug 30, 2024 · 8 comments

Comments

@KeShih
Copy link
Contributor

KeShih commented Aug 30, 2024

Python Version

Google Colab currently uses Python 3.10, while the dingo project requires Python 3.8, making it difficult to install dingo on Google Colab.

Outdated content

  1. Dependence and installation:

    "!apt-get install libsuitesparse-dev &> /dev/null\n",
    "%pip install sparseqr &> /dev/null\n",
    "%pip install Cython &> /dev/null\n",
    "%pip install cobra &> /dev/null\n",
    "%pip install kaleido &> /dev/null\n",
    "%pip install pyoptinterface[highs] &> /dev/null"

    "!python setup.py install --user &> /dev/null\n",

    The README recommends using poetry.

    dingo/README.md

    Lines 60 to 62 in e89128c

    curl -sSL https://install.python-poetry.org | python3 - --version 1.3.2
    poetry shell
    poetry install

  2. Ignored lpsolve Library:

    dingo/README.md

    Lines 44 to 49 in e89128c

    You will also need to download and unzip the lpsolve library:
    ```
    wget https://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.11/lp_solve_5.5.2.11_source.tar.gz
    tar xzvf lp_solve_5.5.2.11_source.tar.gz
    rm lp_solve_5.5.2.11_source.tar.gz
    ```

@advait-zx
Copy link

This is my first contribution i want to solve this issue what should i do to make impact

@dikshant182004
Copy link

hi @KeShih can i solve this issue

@KeShih
Copy link
Contributor Author

KeShih commented Nov 15, 2024

hi @KeShih can i solve this issue

I think we should abandon Google Colab and switch to something more convenient and ready-to-use. GitHub Codespaces might be a good choice.

Or package it into a Docker image.

@vissarion
Copy link
Member

I think we should abandon Google Colab and switch to something more convenient and ready-to-use. GitHub Codespaces might be a good choice.

@KeShih interesting, I haven't use Github Codespaces. What are the advantages over google colab? For example, how is this issue solved easier on codespaces vs colab?

Or package it into a Docker image.

This should be independent from the cloud option and should be useful anyways, see #79 which is related, but the PR is not in good shape yet.

@KeShih
Copy link
Contributor Author

KeShih commented Nov 15, 2024

@KeShih interesting, I haven't use Github Codespaces. What are the advantages over google colab? For example, how is this issue solved easier on codespaces vs colab?

@vissarion GitHub Codespaces is also ready-to-use, providing a browser-based IDE (VS Code + Ubuntu). Switching Python versions and installing Poetry are hard in Google Colab, but possible in Codespaces because it offers a full Linux environment.

@vissarion
Copy link
Member

OK, thanks, then it may worth it to have an alternative notebook in Github Codespaces and decide how we proceed and which notebook to keep.

@hariszaf
Copy link
Collaborator

I would suggest to have a version of notebook able to run on a codespace.

@vissarion
Copy link
Member

I would suggest to have a version of notebook able to run on a codespace.

Yes, this is what I mean but alternative. Would the same file dingo_tutorial.ipynb just run on codespace if we upload it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants