Loghi
1 min readOct 5, 2020

--

Assuming your website is at https://yourwebsite.example.com , you can embed the notebook on your website with the following configuration setting in jupyter_notebook_config.py:

c.NotebookApp.tornado_settings = {

'headers': {

'Content-Security-Policy': "frame-ancestors https://yourwebsite.example.com 'self' ";

default-src https: ‘unsafe-inline’;

connect-src https: wss:

}

}

--

--

Loghi
Loghi

Responses (1)