Comments (8)
I don't see how this could be possible with the current framework, because when the widget is changed (e.g. a slider is dragged), it calls Julia code to compute the new value to be displayed. On nbviewer, there is no Julia code running.
A similar limitation should apply to Python notebooks: there, it is Python code being called to compute the new object to display, and similarly nbviewer is not running Python. Unless IPython implements some kind of caching here?
from interact.jl.
Yeah, I think there would need to be a different macro for this, like @manipulatecached
. It would basically call the code for all the various combinations of settings, saving the output, and then using javascript to switch between the saved outputs.
from interact.jl.
You're looking for something like Shiny in R? It would be nice to have that, and have it share a similar interface to Interact, but it's a pretty big project since it would have to be implemented either as a pretty elaborate caching scheme on the ipython side, or an entirely separate mechanism on the julia side.
from interact.jl.
@dcjones It looks like Shiny is client-server (which is pretty cool by the way), but I was thinking we could just save a sequence of outputs from writemime for the different parameter settings. Then the javascript control would just display the relevant output.
from interact.jl.
Right, for some reason I was under the impression they also had the ability to cache output like you describe. Now I'm not sure why I thought that. I looks like it does require an R process.
from interact.jl.
I'm pretty sure Shiny always runs R code on a server to do updates.
from interact.jl.
Depending on your level of patience, I would recommend waiting for static widget support in IPython (ipython/ipython#5900), which will work on nbviewer without you needing to do anything other than support vanilla widget messages.
from interact.jl.
Thanks @minrk, that sounds great. I'm going to close this issue in favor of the IPython issue.
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.