Coder Social home page Coder Social logo

Comments (3)

georgebv avatar georgebv commented on July 18, 2024

This looks like a bug with matplotlib and not with pyextremes - the error occurs when figure is created. Try running the following code and post here what happens:

import matplotlib.pyplot as plt
plt.figure(figsize=(5,5), dpi=96)

I would also like to know how you installed pyextremes - looks like miniconda. Can you share your python environment (output of conda list command)? I'd like to see versions of all packages you have there.

from pyextremes.

DamienIrving avatar DamienIrving commented on July 18, 2024

Thanks for the prompt to run conda list.

When I ran your quick start example on my linux machine in an existing conda environment (which threw the error I shared and give the same error for plt.figure(figsize=(5,5), dpi=96)), conda list showed the following versions of matplotlib were installed:

matplotlib-base          3.5.3             py310h78c5c2f_2    conda-forge
matplotlib-inline         0.1.5              pyhd8ed1ab_0         conda-forge

I then created a fresh environment with just pyextremes and jupyter installed (conda create -n pyextreme jupyter pyextremes) and the quick start example worked just fine. This time conda list showed:

matplotlib-base          3.5.3             py310h78c5c2f_2    conda-forge
matplotlib-inline         0.1.6              pyhd8ed1ab_0         conda-forge

I therefore ran conda update matplotlib-inline in my existing conda environment, which fixed the error I shared with you.

I wonder whether in the conda package for pyextremes you could require matplotlib-inline >= 1.6? That might prevent anyone else having this same problem.

Thanks again for your help.

from pyextremes.

georgebv avatar georgebv commented on July 18, 2024

Glad it worked out for you. matplotlib-inline is a jupyter dependency and is not related to pyextremes (even though it's convenient to use in jupyter).

This was a bug with that specific version (0.1.5) of matplotlib-inline: ipython/matplotlib-inline#19, so I'm closing this issue.

from pyextremes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.