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

How to make sure tools run in the right python/julia environment etc. #2196

Closed
manuelma opened this issue Jul 14, 2023 · 2 comments
Closed
Milestone

Comments

@manuelma
Copy link
Collaborator

I don't know if we have an issue about this already, but we have discussed it in the first Mopo meeting in Helsinki.

The question is how to attach a specific python version, julia version, environment, etc, to a tool so it produces the exact same results for different users. At the moment, if I clone your Spine Toolbox project, it is up to me to configure the right python or julia for each tool so it works as intended. Moreover, you don't have any way to tell me what that python and julia needs to be via the project itself - you need to tell me via a readme or some documentation of sorts. Ideally we would have a more streamlined way.

I was discussing recently with some users/collaborators that are trying to tackle this issue. Their idea is as follows:

  • Create a docker container that has the right python and julia, etc.
  • Start a Jupyter kernel in that docker - this creates a connection file in a location within that docker that's accessible from outside
  • From spinetoolbox, use that connection file to setup a kernel and associate that kernel to the tool
  • Run the tool

With this, it is guaranteed that by sharing the Spine Toolbox project and the docker container, the tool will always run in the same python and python environment.

What do you think? Do we have any ongoing plans to tackle this issue differently? @DillonJ @jkiviluo @PekkaSavolainen @soininen

@jkiviluo
Copy link
Member

Would it then be easy to keep the Spine Toolbox updated through Docker? Could there be git and pip in the same container too? I haven't really used it, so I know very little about this...

@jkiviluo
Copy link
Member

Closing this since #3029 has more detailed plans. Not using Docker though, which may be something to revisit later (after we have better defined environments then it can be easier to build Dockers too).

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

2 participants