Giter VIP home page Giter VIP logo

Comments (6)

FabienArcellier avatar FabienArcellier commented on June 18, 2024 1

For this example, I bypass many security rule, generating a configuration file to disable the Content-Security-Policy, then running the command.

don't use this configuration in unsafe network, I give you info to help you find the best way to configure your policy and to show it's working

jupyter notebook --ServerApp.disable_check_xsrf=true --ServerApp.allow_origin='*' --ServerApp.token=''

image

Generate jupyter configuration

jupyter notebook --generate-config

/home/${USER}/.jupyter/jupyter_notebook_config.py

c.NotebookApp.tornado_settings = {
    'headers': {
        'Content-Security-Policy': ""
    }
}

from streamsync.

FabienArcellier avatar FabienArcellier commented on June 18, 2024

hi @duckunz, the iframe component already exist in the devlopment branch dev. We will release it soon. @raaymax has done the development.

Peek 2024-03-13 09-43

from streamsync.

FabienArcellier avatar FabienArcellier commented on June 18, 2024

On the current version (the 0.3.0), you can also use the existing html component with the following parameters. It should work

image

from streamsync.

duckunz avatar duckunz commented on June 18, 2024

Thanks a lot for your help. It works for normal website but for me I want to ask more specific case.

For example if I have a localhost (like http://localhost:8888/tree) website or LAN network url (like http://10.21.210.47:8888/tree) - jupyter notebook for specific.

When I inserted {"src":"http://10.21.210.47:8888/tree"} into streamsync, I got 10.21.210.47 refused to connect.

Could you help me to fix this.

Many thanks!

from streamsync.

raaymax avatar raaymax commented on June 18, 2024

I don't understand what you are trying to do but if you are using the browser from inside of the local network you should be able to access those pages. We need more information about your use-case.
Join our discord server, I'm sure we will be able to find solution for you there ;)
https://discord.gg/sn677E3Pd3 (edited - I pasted wrong link, sorry)

from streamsync.

FabienArcellier avatar FabienArcellier commented on June 18, 2024

Jupyter has several security mechanisism active by default to improve daily security.

If you need to embed a jupyter notebook into streamsync, you will find all the configuration option in the jupyter documentation : https://jupyter-notebook.readthedocs.io/en/6.2.0/public_server.html#running-a-public-notebook-server and in section https://jupyter-notebook.readthedocs.io/en/6.2.0/public_server.html#embedding-the-notebook-in-another-website

from streamsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.