Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No output in Jupyter with Plots and GR #268

Open
dlfivefifty opened this issue Oct 12, 2018 · 8 comments
Open

No output in Jupyter with Plots and GR #268

dlfivefifty opened this issue Oct 12, 2018 · 8 comments

Comments

@dlfivefifty
Copy link

dlfivefifty commented Oct 12, 2018

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

untitled

@dlfivefifty
Copy link
Author

Updating IJulia fixed it.

@dlfivefifty
Copy link
Author

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

@dlfivefifty dlfivefifty reopened this Oct 12, 2018
@piever
Copy link
Collaborator

piever commented Oct 12, 2018

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 JuliaGizmos/WebIO.jl#211 and a future plan to write a proper Jupyter Lab / Notebook extension which would make it much more solid and reliable.

@neuralian
Copy link

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
Copy link
Collaborator

piever commented Nov 27, 2018

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

(v1.0) pkg> add [email protected]
(v1.0) pkg> add [email protected]

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
Copy link

neuralian commented Nov 27, 2018

Thanks.

Can't add [email protected] or [email protected]
-- 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 [email protected]
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 [email protected]
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
Copy link
Collaborator

piever commented Nov 28, 2018

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 rdeits/MeshCat.jl#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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants