HTML(
    """
    <script type="text/javascript>
        IPython.notebook.kernel.execute("URL = ' + window.location + "'")
    </script>"""
    )
Can a Jupyter / IPython notebook take arguments in the URL?