JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
521 stars 76 forks source link

No output in Jupyter with Plots and GR #268

Open dlfivefifty opened 6 years ago

dlfivefifty commented 6 years ago

I don't see any output in the attached. It works fine without the @manpulate for.

untitled
dlfivefifty commented 6 years ago

Updating IJulia fixed it.

dlfivefifty commented 6 years ago

I think it's very brittle: it stopped working again.

piever commented 6 years ago

Unfortunately WebIO (on which this is based) seems to be having some hiccups lately when used from a notebook. A known issue is that it's not robust to refreshing the page. There is a massive effort to make it more robust at https://github.com/JuliaGizmos/WebIO.jl/pull/211 and a future plan to write a proper Jupyter Lab / Notebook extension which would make it much more solid and reliable.

neuralian commented 5 years ago

I'm not seeing any widgets in Jupyter, using Julia 1.0.2, using Interact. All packages up to date. Plots (Plots/pyplot()) working OK.

(a) Is this still broken or (b) Am I doing something wrong?

If (a) Any news, when? else (b) What am I doing wrong?

Thanks.

piever commented 5 years ago

Could you make sure all dependencies are at their latest release:

(v1.0) pkg> add WebIO@0.6.1
(v1.0) pkg> add InteractBase@0.8.1

Things are supposed to be working, if they don't work in your case it'd be useful to post your versioninfo, what code you are running and in what setup (jupyter notebook or lab).

neuralian commented 5 years ago

Thanks.

Can't add WebIO@0.6.1 or InteractBase@0.8.1 -- incompatible with MeshCat -- MeshCat does not exist -- See error messages below. VersionInfo at bottom.

Code: Examples from Doc, notebook tutorials - none produce any widgets. Have tried Jupyter and JupyterLab (which are working OK otherwise). It does seem to work OK in Atom.

(v1.0) pkg> add WebIO@0.6.1 Resolving package versions... ERROR: Unsatisfiable requirements detected for package MeshCat [283c5d60]: MeshCat [283c5d60] log: ├─possible versions are: [0.0.1-0.0.3, 0.1.0-0.1.2, 0.2.0-0.2.3, 0.3.0, 0.4.0] or uninstalled ├─restricted to versions 0.4.0 by an explicit requirement, leaving only versions 0.4.0 └─restricted by compatibility requirements with WebIO [0f1e0344] to versions: 0.0.1-0.0.3 or uninstalled — no versions left └─WebIO [0f1e0344] log: ├─possible versions are: [0.1.0-0.1.10, 0.1.12, 0.2.0-0.2.8, 0.3.0-0.3.4, 0.4.0-0.4.2, 0.6.0-0.6.1] or uninstalled └─restricted to versions 0.6.1 by an explicit requirement, leaving only versions 0.6.1

(v1.0) pkg> add WebIO@0.6.1 Resolving package versions... ERROR: Unsatisfiable requirements detected for package MeshCat [283c5d60]: MeshCat [283c5d60] log: ├─possible versions are: [0.0.1-0.0.3, 0.1.0-0.1.2, 0.2.0-0.2.3, 0.3.0, 0.4.0] or uninstalled ├─restricted to versions 0.4.0 by an explicit requirement, leaving only versions 0.4.0 └─restricted by compatibility requirements with WebIO [0f1e0344] to versions: 0.0.1-0.0.3 or uninstalled — no versions left └─WebIO [0f1e0344] log: ├─possible versions are: [0.1.0-0.1.10, 0.1.12, 0.2.0-0.2.8, 0.3.0-0.3.4, 0.4.0-0.4.2, 0.6.0-0.6.1] or uninstalled └─restricted to versions 0.6.1 by an explicit requirement, leaving only versions 0.6.1

(v1.0) pkg> rm Meshcat ┌ Warning: Meshcat not in project, ignoring └ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1156 [ Info: No changes

julia> versioninfo() Julia Version 1.0.2 Commit d789231e99 (2018-11-08 20:11 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, haswell)

piever commented 5 years ago

Looks like MeshCat prevents you from installing WebIO 0.6 (which could potentially resolve your issue) as it isn't yet compatible with it. The issue to track that compatibility is https://github.com/rdeits/MeshCat.jl/issues/71.

Even though you don't have MeshCat directly installed you probably have installed some package that depends on it (I imagine it must be something from JuliaRobotics). To test that WebIO 0.6 fixes that issue you can either try and remove those packages, or create a separate environment using Pkg, add WebIO 0.6.1 there and test if things work.

neuralian commented 5 years ago

Indeed, I have RigidBodyDynamics installed & it uses MeshCat. Guess I'll have to figure out how to create separate environments ... Thanks for your help.