Unable to open image in Jupyter Lab: IOPub data rate exceeded message

Hi, I am trying to open an image using Jupyter Lab and I get the following error:

IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable

I have tried increasing the data limit through anaconda prompt using this input: jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

This is the code I am using:
‘’‘img = Image.open( ‘cat2.png’ )
cat = np.array(img.convert(mode=‘L’))’’’

Thank you for your help

This does not appear related to any HoloViz tool unless there’s some missing code you haven’t posted.

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10 and/or
jupyter lab --NotebookApp.iopub_data_rate_limit=1.0e10