A series of experiments with Julia and Python
0

Configure Feed

Select the types of activity you want to include in your feed.

98 1 0

Clone this repository

https://git.vm.fail/utensil.tngl.sh/julia-playground https://git.vm.fail/did:plc:v2n7igmczvhjcyvrvdwfgsdp
ssh://git@knot1.tangled.sh:2222/utensil.tngl.sh/julia-playground ssh://git@knot1.tangled.sh:2222/did:plc:v2n7igmczvhjcyvrvdwfgsdp

For self-hosted knots, clone URLs may differ based on your setup.


README.md

Julia Playground#

A series of experiments with Julia, to familiarize with Julia and look for potential applications.

Install Python, INotebook#

Install MiniConda and then:

conda install numpy scipy sympy ipython jupyter matplotlib
jupyter notebook

Install Julia and IJulia#

# 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/
Pkg.add("IJulia")
using IJulia
notebook()

Julia-Python bridge#

julia> Pkg.add("PyCall")
INFO: Initializing package repository /Users/utensil/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl
# The first time takes a long time to do git clone......
julia> using PyCall
INFO: Precompiling module PyCall...

julia> @pyimport numpy.random as nr

julia> nr.rand(3,4)
3x4 Array{Float64,2}:
 0.104454  0.847609  0.810417  0.939161
 0.266673  0.186059  0.651118  0.861648
 0.720235  0.164573  0.448754  0.183331

Install most installed packages#

The following are some of the most installed packages from Julia Package Pulse.

# Math
for pkg in ["Mocha", "Distributions", "DataFrames", "JuMP", "Graphs", "GLM", "GeneticAlgorithms", "ControlSystems", "DiscriminantAnalysis", "HTSLIB"]
    Pkg.add(pkg)
end

# Faster
for pkg in ["ParallelAccelerator","NLopt", "Optim"]
    Pkg.add(pkg)
end

# Vis
for pkg in ["Escher", "Plots", "Gadfly", "PyPlot", "GR", "Immerse", "UnicodePlots", "Qwt", "PlotlyJS", "Interact", "Mux", "GLVisualize", "Blink"]
    Pkg.add(pkg)
end

# Utility
# brew install llvm
for pkg in ["Reactive", "Maker", "FactCheck", "BuildExecutable", "Clang"]
    Pkg.add(pkg)
end

Note:

  • Clang.jl is not working yet, it's looking for a missing llvm-config.

See this gitst for CUDA installation instructions.

Pkg.add("CUDArt")
using CUDArt
Pkg.test("CUDArt")

Note: Some MacBook Pro are using Intel Iris graphic card, which doesn't support CUDA, try them somewhere else, with a Nvidia graphic card.

Learn#

Community#

Misc#

http://stackoverflow.com/questions/2607425/is-google-s-cdn-for-jquery-available-in-china/22060903#22060903