just remove %matplotlib notebook because in Jupyter notebook this line give error. when i run some code i get same error "Javascript Error: IPython is not defined in JupyterLab" but when i just see one things in my code i write %matplotlib notebook that is use in colab notebook not in jupyter notebook