-
Notifications
You must be signed in to change notification settings - Fork 3
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
Environment YAML for Compute doesn't work out of the box #84
Comments
Great, thanks for checking up on it!
|
I added support for frozen dependencies in #87, but it requires using uv or pixi instead of pip. So something like |
I've updated the documentation at https://github.com/saeyslab/harpy/blob/main/docs/tutorials/hpc/vib_compute.md, only change necessary was changing
to
and then I was able to run the notebook on compute. Jax is an optional dependency, and not necessary for the example notebook. I would prefer not to include %matplotlib inline in the notebook. Maybe this can temporary be added to data core documentation, because it is probably related to jupyter lab version, as Benjamin mentioned. I will close this issue, feel free to open it if there are still issues. |
Hi Harpy maintainers
Data Core checks every 3 months if the usage example to use Harpy on the Compute Cluster is working as intended. As you have excellent documentation on this, the strategy we discussed together was that we basically referred to your docs (this part) so they have the latest changes.
After rerunning the example with release 0.0.2, it didn't work out of the box. The following was seen and done to make it work:
The environment_vib_compute.yml was pruned a bit too much I think, as I had to load the
jax/0.3.25-foss-2022a-CUDA-11.7.0
module in the Jupyter session + executepython -m pip install textalloc spatialdata-plot
in the Harpy conda env to be able to load the Python libraries successfully.The error after running cell one was the following (for traceback):

The versions of the dependencies for the Conda env are not locked. This failed for a repo clone of the older version,so I can share the versions that were used previously that can help with this (which I tested):
%matplotlib inline
isn't ran before any plots are executed. This might be Compute specific, but as it's not clear why this is necessary, I'll open a pull request to add it to the notebook that is being referred in the docs (Harpy_feature_calculation.ipynb).We have a PR ready to merge to make the usage example even more future proof, relying entirely on your documentation. We can keep you posted on the usability of the part were users could run Harpy on Compute, the same way I did here.
Let me know your thoughts!
Boris D
The text was updated successfully, but these errors were encountered: