Jupyter Notebook showing black UI for error messages


I have uninstalled anaconda and its dependencies and installed jupyter notebook from terminal using pip install jupyter notebook.
But now it is showing black UI for error messages as shown in the screenshot.
And also file is not getting saved.

I just had this behavior. Clicking on the output removes the black background. Trying to render the same widget twice with syntax resulted in this behavior for me