-
Notifications
You must be signed in to change notification settings - Fork 6
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
Asset registration doesn't work with a remote Jupyter server #10
Comments
Thanks for the issue! @travigd you needed to solve this problem too right? One idea which can potentially work: I believe there's only a ZMQ link between the kernel and the Jupyter server. So we can make our plugin serve files by fetching them via ZMQ instead of directly reading from disk. IMO this is still much better / proper than trying to send files over WebSocket by writing some Julia code. |
@shashi This is a little bit different than what I was talking about (which is running a Jupyter kernel on a remote server rather than the entire notebook/lab server). At any rate, are you using JupyterHub? What is the url of your notebook and what URL is the AssetRegistry using (i.e. what URL do you see 404 errors for in the browser console)? |
Oh I assumed "server" means kernel in the issue title... |
Yeah, remote kernel (insofar as remote to the web server) is a pretty rare case as far as I know. The only common case is "enterprise" kernels (i.e. things that run on clusters like Spark). @joshuamanns Are you still having issues? |
I am having this issue URL of notebook : https:///jupyter/user/ilan.pillemer@@dev/lab/workspaces/auto-0 |
Is it the double-slash that's causing the issue? I've not had these kinds of issues on JupyterHub myself. |
when I tried removing the double slash and pasting into the url bar, it still didnt give me the css file.
So the double slash is caused because But when I simply tried pasting the URL without the double slash it still seemed to not work. Do you know how I can diagnose to see what the URL it is expecting should be? ie where the asset server is running on? by the way this is from a regular notebook, the above comment a day or so ago was trying to get it working in JupyterLab. But the same thing happens in both. |
Is WebIO pre-installed on the server? The assetregistry extension is a Jupyter server extension, which needs to be installed before the Jupyter notebook instance starts (there's no way to activate it after the Jupyter notebook has started). |
Currently I run from the notebook. (in the Jupyter Hub)
or alternatively the lab extension. and then restart the kernel. currently I believe we use this to start-up the Julia kernel in the k8s cluster as part of Jupyter Hub running the K8s cluster.
I would assume we would need to change this to include |
Yep, just add WebIO and run RUN julia -e 'import Pkg; Pkg.update()' && \
(test $TEST_ONLY_BUILD || julia -e 'import Pkg; Pkg.add("HDF5")') && \
julia -e '\
using Pkg; pkg"add IJulia WebIO"; pkg"precompile"; \
using WebIO; WebIO.install_jupyter_nbextension(); \
' |
When using a library like
Interact
that relies onAssetRegistry
on a remote Jupyter server, 404s are thrown for assets.See this thread: JuliaGizmos/Interact.jl#270
The text was updated successfully, but these errors were encountered: