Pop-ups are output at datalab but not at the colaboratory.
test = """
<script type="text/Javascript">
alert("hi")
</script>
"""
from IPython.display import HTML
HTML(test)
Is it a colaboratory bug? How can I pop up normally?
thanks
I don't think it's a bug. Each output is rendered in an iframe sandbox, and the sandbox doesn't have the popup capability.
A simple work-around is to use something like raw_input to prompt the user, e.g.,
value = raw_input('Enter value: ')
print 'entered', value