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

%matplotlib inline no longer needed #14

Open
theAfricanQuant opened this issue Apr 10, 2022 · 1 comment
Open

%matplotlib inline no longer needed #14

theAfricanQuant opened this issue Apr 10, 2022 · 1 comment

Comments

@theAfricanQuant
Copy link

theAfricanQuant commented Apr 10, 2022

In Chapter 14 on plotting you wrote "To leverage it in Jupyter, make sure you include the
following cell magic to tell Jupyter to display the plots in the browser:
%matplotlib inline " which no longer holds (for 2+ years atleast) especially if you import pyplot or pandas (which Effective Pandas is all about) https://github.com/ipython/ipython/issues/12190
I just felt that a book written in 2021 should explain that to its readers

@ivanistheone
Copy link

Good catch.

One thing that is useful in modern notebooks is to issue the command:

%config InlineBackend.figure_format = 'retina'

which results in much higher resolution plots (beautiful).

Not sure if it's worth including/mentioning in the book, but would be nice to include in the provided notebooks.

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

No branches or pull requests

2 participants