Closed jlumpe closed 3 years ago
I can't get WebIO.install_jupyterlab_extension() to work with JupyterLab 3.09 and Julia 1.5.3 in an Anaconda environment on Windows 10. The documentation says that that the function takes optional arguments to define the path to jupyter.exe and a couple of flags to control conda.jl. However, the function signature doesn't show any arguments:
`using MethodAnalysis methodinstances(WebIO.install_jupyter_labextension)
2-element Array{Core.MethodInstance,1}: MethodInstance for install_jupyter_labextension() MethodInstance for install_jupyter_labextension(::Nothing)`
Within an Anaconda environment you shouldn't have to specify the path to the Jupyter executable.
The bug
Specifically, the first two commands
$jupyter labextension unlink --no-build @webio/webio
and$jupyter labextension uninstall --no-build @webio/jupyter-lab-provider
are meant to remove previous versions of the package/extension if they are currently installed, and are expected to fail if they do not. The issue is that when they fail as expectedjupyter labextension
still prints an error message to stdout, which can be very confusing if you don't know what's going on.Example output when running in the standard Julia REPL (not IJulia) with no extensions previously installed:
I've been having problems installing on Jupyter lab 2.x (separate issue) and I spent a lot of time thinking the
ValueError: No linked package for @webio/webio
line was the cause of the problem and trying to figure out what was happening in the log file when this was actually the expected behavior.Ideally, this function should print some kind of message if either of these two commands fail indicating that it shouldn't represent a problem.
Context