Coder Social home page Coder Social logo

julia with jupyterhub about jupyterhub HOT 9 CLOSED

jupyterhub avatar jupyterhub commented on May 18, 2024
julia with jupyterhub

from jupyterhub.

Comments (9)

dsblank avatar dsblank commented on May 18, 2024

These instructions should work:

http://jupyter.cs.brynmawr.edu/hub/dblank/public/Jupyter%20Help.ipynb#1.4.4-Enable-Julia-kernel

from jupyterhub.

davidp123 avatar davidp123 commented on May 18, 2024

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.

dsblank avatar dsblank commented on May 18, 2024

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.

davidp123 avatar davidp123 commented on May 18, 2024

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.

dsblank avatar dsblank commented on May 18, 2024

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.

minrk avatar minrk commented on May 18, 2024

@davidp123 make sure you are using IPython master. kernel selection is not supported in IPython 2.

from jupyterhub.

davidp123 avatar davidp123 commented on May 18, 2024

Thanks both for your help, I switched to ipython 3.0.0-dev directly from github and it works!

from jupyterhub.

yhtang avatar yhtang commented on May 18, 2024

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.

minrk avatar minrk commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.