data-8 / textbook

The textbook Computational and Inferential Thinking: The Foundations of Data Science

Home Page:http://www.inferentialthinking.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interact links broken due to matplotlib backend change

mdogy opened this issue · comments

The datascience libraries were broken for a time because matplotlib has dropped support for the warn=False optional argument in the "use" function which picks the backend renders. It was deprecated in 3.1 and now that it is 3.3 they have made it breaking. The datascience libraries are about to push removal of this so that their libraries will import but at this time one has to pull directly from the repo.

Unfortunately that won't totally fix the notebooks because code like
matplotlib.use('Agg', warn=False)
is in the import cell as well. These have to be purged in the notebooks to read
matplotlib.use('Agg')
or the interact functionality will not work.

Got this message from @davidwagner

data-8/datascience#445
closed:

"datascience 0.15.8 should fix this. Update with pip."

environment of texbook needs to reflect and explicit uses of warn=False in matplotlib.use need purging.

Fixed.