A series of experiments with Julia and Python
README.md
Julia Playground ==================== A series of experiments with Julia, to familiarize with Julia and look for potential applications. Install Python, INotebook ----------------------------------------- Install [MiniConda](http://conda.pydata.org/miniconda.html) and then: ```bash conda install numpy scipy sympy ipython jupyter matplotlib jupyter notebook ``` Install Julia and IJulia ----------------------------------------- ```bash # On Mac: # See https://caskroom.github.io/ brew tap caskroom/cask brew cask install julia # On Ubuntu: sudo add-apt-repository ppa:staticfloat/juliareleases sudo add-apt-repository ppa:staticfloat/julia-deps sudo apt-get update sudo apt-get install julia # On Windows: # Just install from http://julialang.org/downloads/ ``` Start a Jupyter Notebook for Julia ------------------------------------ ```julia using Pkg Pkg.add("IJulia") using IJulia notebook(dir=pwd()) ``` A more interesting way: ```bash # Start Julia REPL $ julia julia> # Enter Pkg REPL-mode # Hit ] pkg> add IJulia # Back to Julia REPL # Hit Backspace julia> # Enter Shell mode or exit to shell # Hit ; shell> julia -e "using IJulia;notebook(dir=pwd())" # or Enter exit() $ julia -e "using IJulia;notebook(dir=pwd())" ``` Julia-Python bridge ----------------------------------------- ```bash pkg> add PyCall Updating registry at `~/.julia/registries/General` Updating git-repo `https://github.com/JuliaRegistries/General.git` Resolving package versions... Installed MacroTools ─ v0.4.5 Installed PyCall ───── v1.90.0 Updating `~/.julia/environments/v1.1/Project.toml` [438e738f] + PyCall v1.90.0 Updating `~/.julia/environments/v1.1/Manifest.toml` [1914dd2f] + MacroTools v0.4.5 [438e738f] + PyCall v1.90.0 Building PyCall → `~/.julia/packages/PyCall/RQjD7/deps/build.log` julia> using PyCall [ Info: Precompiling PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0] julia> nr = pyimport("numpy.random") PyObject <module 'numpy.random' from '~/.julia/conda/3/lib/python3.7/site-packages/numpy/random/__init__.p…