Conda tweaks and Fix Example Notebook 1#184
Conversation
@PaulDudaRESPEC, @timcera, @rburghol & @austinorr, the example 1 notebook now works by installing from the conda environment file. Most importantly this example notebook provides an example of how the IO manager should be used, as described in #182 (comment)
@PaulDudaRESPEC, this reverts things back to how @timcera set them up, so that we can merge PR #184 into `develop` as soon as possible, so that others can run the example with IOManager.
|
@PaulDudaRESPEC, I think we should merge this PR into |
Let's leave pandas version unconstrained in the recommended environment. I think we should frankly do the same for Python, changing these two lines to: ```yml name: hsp2 - python >=3.10 ```
|
I did change the hard-coded version string to something dynamic, however, I don't think is has a use and could be removed (testing to make sure of course). I kept it there not because I thought it was useful, but because I didn't want to be disruptive. I think the idea of the version string is inherited from ancient Python project "skeletons" so that you can make bug reports (maybe that is the use case?), but hsp2 is a low-volume development community and I think a bit of overkill to have the version string programmatically available. As you pointed out you can easily get the installed version through pip or conda. Basically, if the version string needs to come out to make things smoother for "conda develop" then take it out. |
|
@PaulDudaRESPEC, thanks for merging this. I just found a fix for the versions thing and cued up this PR for you to review: |
This PR:
environment.ymlPython 3.10 and to pip installhsp2directly from PyPI after creating the conda environment with all dependencies for running hsp2 and the example notebooks, all from one command:conda env create --file=environment.yml --solver=libmambaexamples/1_Intro_to_HSP2.ipynbNotebook to work with the repo 'src' directory reorganization for v0.11.0a1, the new environment file above, and on anyone's computer.__version__fromsrc/hsp2/hsp2/__init__.py, which will require a future fix to return the ability of the Python kernel to retrieve the version number. Note that the version can still be retrieved from conda.conda develop.Accepting this PR would also close: