serveJupyterNotebook = function(){
termId = rstudioapi::terminalCreate(shellType="default")
rstudioapi::terminalSend(id=termId, "jupyter serverextension enable --py jupyter_http_over_ws
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888 --NotebookApp.port_retries=0\n")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.