Specifically what happens is that the string, at least for the syntax highlighter, never ends. Your code will still work fine, but it’s a lot harder to see what’s happening.
Here’s an example of the issue:
Basically, all you need to do is replace two patterns in the
main.min.js file, located in
site-packages/notebook/static/notebook/js. If you’re using virtualenv, look for the file in
<your virtual env folder>/lib/python3.6/site-packages/notebook/static/notebook/js.
After making the necessary modifications, here’s what the same code looks like with correct syntax highlighting: