Error in embedding jupyter notebooks

52 views
Skip to first unread message

vigneshwer dhinakaran

unread,
Sep 6, 2016, 10:59:39 AM9/6/16
to Project Jupyter
Hi,

I am facing problems embedding the jupyter notebook in an iframe in a webpage.


Got a refused to display error and there was not custom directory in my ~/.jupyter dir

vigneshwer dhinakaran

unread,
Sep 8, 2016, 6:07:41 AM9/8/16
to Project Jupyter
The embedding with a running notebook server throws a content security error, while it works fine with the online nbviewer output of the notebook.

Code implementation : https://github.com/dvigneshwer/Spawning_jupyter_notebook_webapp for embedding a notebook in a webapp

I have also mentioned th problems I am facing in this implementation.

Any reviews will be appreciated.

MinRK

unread,
Sep 8, 2016, 7:05:53 AM9/8/16
to Project Jupyter
If your webapp and the notebook are on different hosts, you will need to relax the notebook server's cross-origin protections:

Setting the configuration:

    NotebookApp.allow_origin='*'

will allow any website to launch notebooks. Setting the origin to your other application's domain will allow only your application to access the notebook server's API.

-Min

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/35c8c173-1fc7-4442-b74f-80c3b44c2b28%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages