Code Monkey home page Code Monkey logo

Comments (6)

shashi avatar shashi commented on August 23, 2024

Interact doesn't require IJulia/IPython. Eventually I want to use Interact to have these widgets ported to LightTable. This arrangement is good for specifying dependencies for each of these (e.g. IJuliaWidgets requires IJulia 0.1.13-.

from interact.jl.

stevengj avatar stevengj commented on August 23, 2024

What does IJuliaWidgets even do? I'm just doing using Interact in IJulia and @manipulate works fine.

from interact.jl.

shashi avatar shashi commented on August 23, 2024

Ah, that's because Interact checks to see if you are including it from IJulia and if so loads IJuliaWidgets. It will throw a warning if IJuliaWidgets is not installed. All the IJulia-specific stuff (e.g. Comm handling) and hacks go in IJuliaWidgets while Interact strives for a neat API both for the user and developers of other IDEs.

from interact.jl.

stevengj avatar stevengj commented on August 23, 2024

@shashi, in that case, the REQUIRE file of Interact.jl needs to list IJuliaWidgets anyway, as Interact won't work in IJulia if the user forgets to Pkg.add it. However, it is weird to have it as a separate package because, as far as I can tell, a user will never ever type using IJuliaWidgets explicitly: it is purely an internal module used secretly within Interact.

My suggestion would be to just put IJuliaWidgets in Interact/src/IJuliaWidgets, as a subdirectory. This will make it easier to keep track of the code, and but it will still be a (sub)module (Interact.IJuliaWidgets). This will also play nicely with JuliaLang/julia#6195 (you will just be able to declare module IJuliaWidgets requires IJulia and it will do what you want).

One of my motivations for this is that I'd like to see Interact and React moved to JuliaLang at some point soon, and it will be easier for us to keep track of if there are fewer modules. Another motivation is bug reports: when people file issues for Interact, some of the issues will actually apply to IJuliaWidgets (which people won't even be aware of because it is included silently), and it will be be annoying to constantly refer to issues from Interact from IJuliaWidgets commits.

from interact.jl.

stevengj avatar stevengj commented on August 23, 2024

(Note that if you make IJuliaWidgets an internal module within Interact that is only loaded when IJulia is running, then you don't need to REQUIRE IJulia in Interact, because Interact will still be loadable without IJulia.)

from interact.jl.

shashi avatar shashi commented on August 23, 2024

Okay for now I moved IJuliaWidgets to src/IJulia and include src/IJulia/setup.jl if Main.IJulia. JuliaLang/julia#6195 will be nice to have! This has annoyed me a lot too and I am happy for the change. :)

from interact.jl.

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.