Inlined the toggleDiv function to workaround that jupyterlab doesn't support script tags in html.
Attach a file by drag & drop or click to upload