Hi Aaron,

Have you tried calling it from Python itself? I tried looking up "call
matplotlib from jupyter and it just pointed to this:


import matplotlib.pyplot as plt

To use Matplotlib in a Jupyter Notebook, follow these steps:
1. Import Matplotlib:
Python

import matplotlib.pyplot as plt

2. Enable inline plotting (optional, but recommended):
Python

%matplotlib inline

This magic command ensures that your plots are displayed directly within
the notebook's output cells.
3. Create your plot:
Python

x = [1, 2, 3, 4]
y = [10, 15, 5, 12]

plt.plot(x, y)
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.title('My Plot')
plt.show()

Alternative:
If you want interactive plots, you can use ipympl backend:
Python

%matplotlib widget

Make sure Matplotlib is installed:
If you encounter an error, you might need to install Matplotlib:
Code

!pip install matplotlib


https://www.google.com/search?q=call+matplotlib+from+Jupyter&rlz=1C5CHFA_enUS971US973&oq=call+matplotlib+from+Jupyter&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIICAEQABgWGB4yCAgCEAAYFhgeMggIAxAAGBYYHjINCAQQABiGAxiABBiKBTINCAUQABiGAxiABBiKBTIKCAYQABiABBiiBDIKCAcQABiABBiiBNIBCDc4NjNqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8

HTH.,

*-- Rich*



*Richard Katz*

*Data Engineering Architect   *

San Leandro, CA: San Francisco Bay Area:
*https://www.linkedin.com/in/richardkatz/
<https://www.linkedin.com/in/richardkatz/>*

415 336-9559


On Mon, Nov 11, 2024 at 11:38 AM Aaron Meurer <[email protected]> wrote:

> I haven't followed all the changes to plotting. Do you know what the
> PR SymPy was that changed this?
>
> Aaron Meurer
>
> On Sat, Nov 9, 2024 at 1:24 PM Matthias Geier <[email protected]>
> wrote:
> >
> > Hi all.
> >
> > A few years ago, I have documented how to create Matplotlib animations
> > from SymPy plots:
> >
> https://nbviewer.org/github/mgeier/python-audio/blob/master/sympy/sympy-matplotlib-animations.ipynb
> >
> > This has worked quite well (as can be seen in the link), but in the
> > meantime, the behavior/usage of the MatplotlibBackend seems to have
> > changed and some of the approaches don't work anymore with the latest
> > SymPy/Matplotlib versions.
> >
> > Most notably, the process_series() method doesn't seem to have the
> > desired effect anymore.
> >
> > Note that the approach using get_points() still works perfectly, and
> > the approach using get_segments() is deprecated, and is not expected
> > to work anymore.
> >
> > Does anyone have an idea how to make the approaches using
> > MatplotlibBackend work again?
> >
> > cheers,
> > Matthias
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sympy" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > To view this discussion visit
> https://groups.google.com/d/msgid/sympy/CAFesC-dx1U1%2BLHDpU4J-SqLs21cszhCaDXSLYSf2dEuTDEjYDg%40mail.gmail.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/sympy/CAKgW%3D6K1hVkWmw3FZ0nHBemS4oBkAqC4kRHdR9uxSXXk6f21EA%40mail.gmail.com
> .
>


-- 
*Richard Katz*
[email protected]
(415) 336-9559
https://www.linkedin.com/in/richardkatz/
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sympy/CAD8%2BcAA44wJ3kdp9Sc2EAoaM1DV9PVq2x7C7em8-E0FWGoyP0w%40mail.gmail.com.

Reply via email to