Git Product home page Git Product logo

Comments (4)

timkpaine avatar timkpaine commented on July 2, 2024 1

I think im going to close this. Its a good thought, but in the "real world" stuff has been way more difficult. As a simple example, id say 99% of jupyterlab users run without ssl, and 99% of the websites they access will run with ssl, meaning 99% of the links we want to hijack will pass through the jupyterlab_iframe proxy which make life super difficult. Same deal for websites not allowing iframe embedding (e.g. google.com), websites with cors issues, etc. The user experience would just be terrible.

from jupyterlab_iframe.

timkpaine avatar timkpaine commented on July 2, 2024

@ian-r-rose @blink1073 you guys have any thoughts about this?

from jupyterlab_iframe.

ian-r-rose avatar ian-r-rose commented on July 2, 2024

@timkpaine I think you should be able to create a new IRenderMimeRegistry for the application and provide your own IResolver and ILinkHandler options for it that override the default behavior. In particular, I think you would want to override the IResolver.isLocal function to tell the application to treat your iframe urls as local links, and the ILinkHandler.handleLink function to open your iframe urls with your extension.

from jupyterlab_iframe.

blink1073 avatar blink1073 commented on July 2, 2024

One better, we could make IResolver and ILinkHandler into tokens and have them be optional arguments here:

https://github.com/jupyterlab/jupyterlab/blob/2c57346d4f4d69a26afe79b15df919e3c8fe17dd/packages/rendermime-extension/src/index.ts#L30

Then this plugin could provide those without the user needing to disable the core plugin.

from jupyterlab_iframe.

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.