Skip to content

Instantly share code, notes, and snippets.

@hurutoriya
Last active January 26, 2016 08:56
Show Gist options
  • Save hurutoriya/a886473e34525a120b1e to your computer and use it in GitHub Desktop.
Save hurutoriya/a886473e34525a120b1e to your computer and use it in GitHub Desktop.
How to run the Matlab and Julia on Jupyter.

How to Run the any Language on Jupyter Notebook

Jupyter is next generation notebook.

http://jupyter.org/

I tried running any language on Jupyter Notebook(in Mac).

This post for Note to easy catch up.

Install Matlab Kernel

$ pip install jupyter
$ pip install numpy
$ pip install pymatbridge
$ pip install matlab_kernel

and Add your Matlab bin file path to zshrc(bashrc). I'm using a MATLAB R2015.

.zshrc

export MATLAB_EXECUTABLE=/Applications/MATLAB_R2015a.app/bin/matlab

Install Julia Kernel

https://github.com/staticfloat/homebrew-julia/

With homebrew 🍻 on Mac

$ brew update
$ brew tap staticfloat/julia
$ brew install julia

https://github.com/JuliaLang/IJulia.jl

$ Julia
julia>Pkg.add("IJulia")

Check the kernel list

$ ipython kernelspec list
Available kernels:
  python3          
  julia-0.4        
  matlab_kernel   

Run Jupyter

$ jupyter notebook

Web browser turn on and you can select language(Python or MATLAB or Julia).

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment