Code Monkey home page Code Monkey logo

ijulia.jl's Introduction

Prototype native Julia kernel for IPython, which allows you to use the IPython front-end interface for the Julia back-end (instead of the native Julia REPL).

Requires:

  • Latest (git master) ZMQ.jl, JSON.jl, REPL.jl, and GnuTLS.jl packages.
  • Latest (git master as of 27 July 2013) Julia.
  • Possibly 1.0dev version of IPython (we haven't tested it with IPython 0.13)

Basic usage: First, run julia kernel.jl to start the Julia kernel. This will print something like connect ipython with --existing /path/to/profile-XXXXX.json. Copy this string and run IPython with ipython console --existing /path/to/profile-XXXXX.json.

Even better, create a julia IPython profile:

$ ipython profile create julia
[ProfileCreate] WARNING | Generating default config file: u'~/.ipython/profile_julia/ipython_config.py'
[ProfileCreate] WARNING | Generating default config file: u'~/.ipython/profile_julia/ipython_qtconsole_config.py'
[ProfileCreate] WARNING | Generating default config file: u'~/.ipython/profile_julia/ipython_notebook_config.py'

then edit $HOME/.ipython/profile_julia/ipython_config.py with the contents:

c = get_config() # should already be at top of the file

c.KernelManager.kernel_cmd = ["julia", "/...PATH.../IJulia/src/kernel.jl", "{connection_file}"]

(replacing ...PATH... with the path to your IJulia directory). This tells IPython how to launch the kernel itself, allowing you to simply run ipython notebook --profile julia or ipython qtconsole --profile julia in order to launch IPython's browser-notebook or Qt interface with Julia.

Please refer to IPython documentation for other config options of IPython frontend themselves. We, for example, strongly recommend to run Notebook over https with password when on a public port, or even localhost if your machine have several users.

ijulia.jl's People

Contributors

carreau avatar fperez avatar jeffbezanson avatar keno avatar stefankarpinski avatar stevengj avatar

Watchers

 avatar  avatar  avatar

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.