Skip to content
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

Add fixes #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add fixes #1

wants to merge 1 commit into from

Conversation

pilinux
Copy link

@pilinux pilinux commented Mar 11, 2023

  • display.set_matplotlib_formats('svg') is deprecated since IPython 7.23
  • modelparams[i,1] = grad

previous code:

from IPython import display
display.set_matplotlib_formats('svg')
modelparams[i,0] = grad

modified code:

from matplotlib_inline.backend_inline import set_matplotlib_formats
set_matplotlib_formats('svg')
modelparams[i,1] = grad

- `display.set_matplotlib_formats('svg')` is deprecated since IPython 7.23
- modelparams[i,1] = grad
@mikexcohen
Copy link
Owner

Thanks for catching that indexing bug. It was one I accidentally introduced after it being correct in the video :\

The svg issue is trickier, because the current version works in colab without requiring any additional installations. Visualization is annoyingly IDE-specific in Python and there are never solutions that work for everyone.

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.

2 participants