Skip to content

Commit

Permalink
Improve Jupyter Dynamic Install instructions
Browse files Browse the repository at this point in the history
This commit makes a few changes:
* Uses "%mamba" over "!mamba" - has support for micromamba
* Adds "-c conda-forge" - I found this necessary, at least for
  micromamba
* Adds prefix delimiter manipulation to account for Windows paths
  • Loading branch information
gselzer committed Oct 24, 2024
1 parent 4ea599e commit 04eb7b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ It is possible to dynamically install PyImageJ from within a Jupyter notebook.
For your first cell, write:
```
import sys, os
!mamba install --yes --prefix {sys.prefix} pyimagej openjdk=11
prefix = sys.prefix.replace("\\", "/") # Handle Windows Paths
%mamba install --yes --prefix {prefix} -c conda-forge pyimagej openjdk=11
os.environ['JAVA_HOME'] = os.sep.join(sys.executable.split(os.sep)[:-2] + ['jre'])
```

Expand Down

0 comments on commit 04eb7b7

Please sign in to comment.