Comments (9)
These instructions should work:
http://jupyter.cs.brynmawr.edu/hub/dblank/public/Jupyter%20Help.ipynb#1.4.4-Enable-Julia-kernel
from jupyterhub.
Hi
Thanks for your reply but may I ask what version of ipython those instructions are for, and whether they make use of IJulia?
My .ipython folder has no "kernels", rather some other folders including "profile_default" and "profile_julia"
profile_julia includes the file "ipython_config.py" with the line:
c.KernelManager.kernel_cmd = ["/usr/bin/julia-basic", "-F", "/home/dave/.julia/IJulia/src/kernel.jl", "{connection_file}"]
I would normally start an IJulia notebook from the command line:
ipython notebook --profile julia
Can jupyterhub use this profile somehow?
from jupyterhub.
You have jupyterhub working? You need to get that running first. Once that is running, you can put a kernel/kernel.json file in a number of places, either system-wide, or in your personal kernel directory. I have been using IPython out of git master, and you probably want to do that too.
The help file I pointed to above is for use by a standard jupyterhub install, augmented with external kernels, like Julia. Once you have jupyterhub up and running, those instructions should do what you want.
My understanding is that profiles will be replaced with the kernel.json file for external kernels, like Julia.
from jupyterhub.
Indeed my jupyterhub works fine (for python). However once I am logged in I cannot find any option to switch kernel from within a notebook.
In the cluster tab I am able to start some julia "engines" but there doesn't seem to be any way to select to use them.
from jupyterhub.
Oh, once you have created another kernel/kernel.json folder and file, then
restart/reload the notebook. Then you will see a picklist in the upper
right-hand corner. You then select the language, Julia in your case.
The cluster uses IPython-only profiles, so those (I don't think) will be
useful to Julia.
(Another project, metakernel, is working on making non-ipython kernels be
able to use the cluster machinery, if you are interested in that.)
On Wed, Oct 8, 2014 at 1:25 PM, davidp123 [email protected] wrote:
Indeed my jupyterhub works fine (for python). However once I am logged in
I cannot find any option to switch kernel from within a notebook.In the cluster tab I am able to start some julia "engines" but there
doesn't seem to be any way to select to use them.—
Reply to this email directly or view it on GitHub
#61 (comment).
from jupyterhub.
@davidp123 make sure you are using IPython master. kernel selection is not supported in IPython 2.
from jupyterhub.
Thanks both for your help, I switched to ipython 3.0.0-dev directly from github and it works!
from jupyterhub.
Hi all,
I was trying to add the IJulia kernel to my jupyterhub docker image but was unsuccessful. What I did was:
julia> Pkg.add("IJulia")
INFO: Installing BinDeps v0.4.7
INFO: Installing Compat v0.24.0
INFO: Installing Conda v0.5.3
INFO: Installing IJulia v1.5.0
INFO: Installing JSON v0.9.1
INFO: Installing MbedTLS v0.4.5
INFO: Installing SHA v0.3.2
INFO: Installing URIParser v0.1.8
INFO: Installing ZMQ v0.4.2
INFO: Building Conda
INFO: Building MbedTLS
Using system libraries...
INFO: Building ZMQ
INFO: Building IJulia
INFO: Found Jupyter version 4.3.0: /usr/bin/jupyter
Writing IJulia kernelspec to /root/.julia/v0.5/IJulia/deps/julia-0.5/kernel.json ...
Installing julia kernelspec julia-0.5
[InstallKernelSpec] Removing existing kernelspec in /root/.local/share/jupyter/kernels/julia-0.5
[InstallKernelSpec] Installed kernelspec julia-0.5 in /root/.local/share/jupyter/kernels/julia-0.5
INFO: Package database updated
and then restart the jupyterhub application. However I can still only see the Python 3 option once logged in. The same procedure could give me the Julia option when combined with jupyter notebook
on my laptop.
from jupyterhub.
IJulia installs to a user-specific location by default, not system-wide (/root/.local/share/jupyter/kernels/julia-0.5
above). You will need to make sure that you have a system-wide install of Julia packages, which don't quite recall how to do (maybe JULIA_PKGDIR env?). You will also have to move the kernelspec from /root/.local/share/jupyter/kernels/
to /usr/local/share/jupyter/kernels/
after it's created.
from jupyterhub.
Related Issues (20)
- '_xsrf' argument missing from POST (jupyterhub 4.1.0, jupyter-server-proxy 4.1.2) HOT 14
- Named servers broken in 4.1.0 HOT 6
- jupyter_server's disable_check_xsrf ignored HOT 3
- GHSA-7r3h-4ph8-w38g security advisory URL returns 404 error for CVE-2024-28233 fixed in 4.1.0 HOT 3
- docs: broken link to wiki HOT 1
- Jupyterhub/Jupyterlab make CORS preflight request to Shibboleth HOT 3
- Send POST request to `/hub/spawn/` from a service does not work in 4.1.2 HOT 4
- Cant´t open Notebook in a directory after activating jupyterlab-extention HOT 1
- 4.1.4: Admin access to another user's server results in '403: Forbidden' on the first attempt; works on subsequent attempts HOT 3
- How to Fix CVE-2024-28233 in 1.x HOT 2
- Can't open lab page under nginx reverse proxy (empty page) HOT 2
- api_request to the proxy failed with status code 504 HOT 3
- examples/service-whoami is broken in 4.1.5 HOT 2
- Support `ServerApp.allow_unauthenticated_access = False`
- Extend the `User` model with fields used by `jupyter-server` identity? HOT 1
- Can we initialise oauth_client when initialise JupyterLab, to support the case that Jupyter Api called when server not yet spawned HOT 3
- add migration documentation to release process HOT 2
- JupyterHub 5.0 HOT 2
- pagination total is not correct with named servers HOT 1
- Feature request: Launch server from CLI 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 jupyterhub.