Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Problem running Miller example #60

Closed
rsignell-usgs opened this issue Nov 22, 2017 · 11 comments
Closed

Problem running Miller example #60

rsignell-usgs opened this issue Nov 22, 2017 · 11 comments

Comments

@rsignell-usgs
Copy link

I tried to run the Miller Composite notebook (because I thought it might be a good one for @julienchastang poster) from
https://unidata.github.io/python-gallery/examples/miller_composite.html#sphx-glr-examples-miller-composite-py

and it's dying in cell [7] here:

https://gist.github.com/anonymous/3da3480e71a62a36983b68dc7ad398d6

what up?

@dopplershift
Copy link
Member

You'd need to install numpy 1.11. Since then, they mucked with gradient to restrict the dx and dy to scalars. See Unidata/MetPy#174 .

@dopplershift
Copy link
Member

You must not be running the environment.yml file for this repo, since that dependency is already encoded there...

@rsignell-usgs
Copy link
Author

rsignell-usgs commented Nov 23, 2017

@dopplershift, True.

I went to https://unidata.github.io/python-gallery/examples/miller_composite.html#sphx-glr-examples-miller-composite-py and clicked on download Jupyter notebook, and since I wasn't missing any packages in the custom environment I was using, I didn't suspect that it would be a version issue in one of the packages.

Would it be possible in sphinx gallery to add a link to the environment.yml close to where the download as Jupyter notebook link is?

@dopplershift
Copy link
Member

No help from sphinx-gallery here, but a pull request adding install instructions and linking the environment from from the main gallery would be welcome!

@rsignell-usgs
Copy link
Author

Not sure the best way to do this. Closing since miller runs fine with specified environment .

@julienchastang
Copy link
Member

@rsignell-usgs Open an issue at https://github.com/Unidata/xsede-jetstream/ if you think the problem lies there. (I did wonder, after we discussed this issue that the environment may simply be out of date.)

@julienchastang
Copy link
Member

@dopplershift Would it be alright if I submitted a PR to add nb_conda_kernels to this project's environment.yml? Seems like a relevant addition to this notebook project. Moreover, I could then reuse this environment.yml file directly for Unidata/science-gateway#264.

@dopplershift
Copy link
Member

@julienchastang in general, that's fine. The reason it's not is because this environment isn't intended for running a server that hosts different kernels. Is that what you need it to do? You only need to install nb_conda_kernels in the server's environment--the individual environments for each of the kernels don't actually need it installed.

@rsignell-usgs
Copy link
Author

rsignell-usgs commented Nov 27, 2017 via email

@dopplershift
Copy link
Member

Right--this is pulled in by jupyter listed in the environment.yml for this repository. Believe me, I've used this very environment with my own nb_conda_kernels setup. 😁

@julienchastang
Copy link
Member

OK thanks for the clarification. No PR then.

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

No branches or pull requests

3 participants