I'm not sure exactly what we can do about this, or how to best go about it... I was trying to get some Javascript examples working in the notebook for a demo, and found out that this simple cell, once executed, will completely wedge the notebook:
from IPython.core.display import HTML
src = """
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Simple Test</title>
<script language="javascript" type="text/javascript" src="http://people.iola.dk/olau/flot/jquery.js"></script>
</head>
<body>
Hello World.
</body>
"""
HTML(src)
The problem is the loading of jquery.js in the header, if I remove that line there's no problem.
I'm not sure this is even really a bug on our side, I just don't know enough about JS. But I can see users trying this kind of thing easily when looking for more interactive elements in the notebook.
The bigger issue is how we want to allow users to inject Javascript into the notebook as a result of returning Javascript reprs of Python objects.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4