Git Product home page Git Product logo

julia_tutorials_for_dummy's Introduction

Julia 超新手教學

Julia tutorials for dummy.

Installation

Install Julia

官方下載頁面 下載目前穩定版(Current Release)。

請根據你的電腦作業系統以及位元版本下載相對應的安裝檔。

Windows

直接點擊安裝檔無腦安裝。

macOS

安裝好後,應該可以在 /Applications 找到 Julia-<version>.app (最新版是 1.0.0) �點擊兩下應該會開啟 Terminal 並進入 julia 的 console

如果你跟我一樣不喜歡用觸控板點點點,比較喜歡打字 可以考慮在 ~/.bash_profile 中加入這一小段

_setup_julia(){
    if [ "$(uname -s)" != 'Darwin' ]; then
        echo 'julia setup function works only on macOS';
        return 2;
    fi; 
    JULIA_APP="$(command ls /Applications | grep -i julia | sort -r | head -1)";
    if [ ! "${JULIA_APP}" ]; then
        echo "Julia is not installed";
        return 1;
    fi; 
    JULIA_PATH="/Applications/${JULIA_APP}/Contents/Resources/julia/bin";
    export PATH=$PATH:$JULIA_PATH;
    unset JULIA_APP JULIA_PATH;
}
_setup_julia
unset _setup_julia

之後開一個新的 Terminal �起來,直接執行 julia, 應該就可以看到最新版的 julia console

Test Julia

Windows

左下方"開始" > "Julia 1.0.0" > "julia-1.0.0"

Install Jupyter

建議安裝 Anaconda,請選擇 Python 3.6 的版本安裝。

當中內建 Jupyter 不需額外安裝。

Install IJulia

Windows

左下方"開始" > "Julia 1.0.0" > "julia-1.0.0"

會進入 Julia 的互動式命令介面

打入 Pkg.update() 做套件更新,請確定你有連上網路

打入 Pkg.add("IJulia") 安裝 IJulia。

Test IJulia

安裝成功後,打入 using IJulia

打入 notebook() 開啟 Jupyter

Usage

開啟 Jupyter notebook 來執行 julia

Windows

左下方"開始" > "Julia 1.0.0" > "julia-1.0.0"

會進入 Julia 的互動式命令介面

打入 using IJulia

打入 notebook() 開啟 Jupyter

Contents

Notebooks

Slides

julia_tutorials_for_dummy's People

Contributors

yuehhua avatar paristsai avatar dboyliao 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.