Skip to content

Conversation

@endolith
Copy link

@endolith endolith commented Jun 3, 2024

Fix the COLORMAPS.ipynb file

  • Fix some spelling/language issues
  • Remove HTML/Javascript hacks
    • These do not work and don't seem important anyway; the cells do not
      scroll regardless.
  • Remove __future__ imports: Python 2 is obsolete
  • Remove np.float references
    • AttributeError: module 'numpy' has no attribute 'float'.
    • np.float was a deprecated alias for the builtin float.

AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this
error in existing code, use `float` by itself. Doing this will not
modify any behavior and is safe. If you specifically wanted the numpy
scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details
and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
@endolith endolith force-pushed the COLORMAPS_fix branch 3 times, most recently from 0022d38 to 84d4fdf Compare June 3, 2024 15:46
Python 2 is obsolete, so no reason to keep these.
These do not work and don't seem important anyway; the cells do not
scroll regardless.

First I changed IPython.core.display to IPython.display because of:

DeprecationWarning: Importing display from IPython.core.display is deprecated since IPython 7.14, please import from IPython display

But it still didn't work, so I just removed it
@endolith endolith changed the title Colormaps fix Colormaps notebook fix Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant