googlecodelabs / feedback

Provide feedback to our codelabs by filing an issue here
18 stars 22 forks source link

[cloud-tensorflow-mnist]: Notebook return error on step 'Let's have a look at the data' #1451

Open vvillarreal-cfee opened 1 week ago

vvillarreal-cfee commented 1 week ago

The notebook returns an error when try to use the display_digits() because the parameter b of grid was deprecated in matplotlib 3.5, and renamed visible.

Reference: https://github.com/matplotlib/matplotlib/issues/25267#issuecomment-1437368645

vvillarreal-cfee commented 1 week ago

To fix this, need to change the line:

plt.grid(b=None)

to:

plt.grid(visible=None)

inside the display_digits() function definition, on the keras_01_mnist.ipynb notebook.