-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix pymatgen response fields issue in tutorial #9
Conversation
00b449c
to
2a8be9c
Compare
2a8be9c
to
e360a80
Compare
Lots of additional diff generated due to using a more recent jupyter version, unfortunately. Basically the only change is adding a cell that does: # There is a bug with 2020.0.15 and 2020.0.16 this has been fixed in a fork, hopefully soon to be merged and added to next pymatgen release
# If this is not available, install directly from GitHub
# You may not want to run this cell if you are performing the tutorial within your own Python environment
if int(version("pymatgen").split(".")[-1]) < 17:
!pip install git+https://github.com/ml-evs/pymatgen@fix_response_fields |
The fix has now been merged into pymatgen, and I have verified that the install process here works. I have changed this PR to pin to master of pymatgen until the next release, and will open an issue tracking it so we can remove this workaround. Thanks again for raising this @JPBergsma, I'll merge now but feel free to take a look. |
Hi Matthew, I just tried it in binder but when I try to execute : I get the error message :
The pymatgen version is still listed as version(2022.0.16)
When I only load your version,thus skipping the first code blocks. I get the error below when I execute
The feed back from the installation is:
|
Thanks for this report @JPBergsma! I wonder if we are just hitting a cache somewhere... it worked in Colab before I merged, and I assumed this would be harder than binder to please... I'll make a commit that forcibly uninstalls the old version before calling
The pymatgen build metadata has not changed, so it will still register 2022.0.16 for now (bit annoying).
This looks like it is loading the right version at least, 4fc889 is the most recent commit.
This is also to be expected, the |
7885a65 definitely works in both Colab and Binder now 😅 |
It works for me too under Binder. |
In Colab I still got this warning: WARNING: The following packages were previously imported in this runtime: |
Add temporary workaround for #8 by pinning pymatgen to fixed/forked version.
This PR can be tested at Colab and Binder.