Comments (6)
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.
What does IJuliaWidgets
even do? I'm just doing using Interact
in IJulia and @manipulate
works fine.
from interact.jl.
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.
@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.
(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.
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)
- Excruciatingly slow on Windows HOT 2
- More detailed examples of a standalone web page
- Compatibility issue with DataFrames HOT 1
- VS Code integration HOT 4
- TagBot trigger issue HOT 2
- ErrorException: Invalid dependency (must be a url, file, or AssetRegistry path): C:\Users\Stephen\.julia\packages\Knockout\3gjS1\src\..\assets\knockout.js HOT 5
- ERROR: UndefVarError: WEAVE_ARGS not defined HOT 1
- Update README to install webio jupyter extensions via Conda instead of WebIO
- map bang syntax help needed HOT 2
- How can I read a *.mat file as values {Float64} ?
- Julia: using @manipulate creates plot but doesn't update after saving notebook and reopening HOT 2
- when using @manipulate, it output error messages HOT 5
- Interact does not show widgets in IJulia HOT 2
- savedialog() on MacOSX throws UndefVarError HOT 6
- Doesn't seem to work in JupyterLab 3.1.7 HOT 2
- How to update two widgets on some event
- UndefVarError: setexcludinghandlers! not defined in Jupyter HOT 2
- mux minimal slider examples doesn't work HOT 1
- Interact not working with Mux 1.0.1
- Sliders not appearing with Interact HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interact.jl.