履歴: プログラミング/julia/インストール
各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 6 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます
| 日時 | タイトル | 文字数 | 追加 | 削除 | 内容 | 差分 | 基準 |
|---|---|---|---|---|---|---|---|
| 2018/4/11 22:51:50 | プログラミング/julia/インストール 最新版 | 13,516 | +1 | -1 | 表示 | 差分 | — |
| 2018/4/11 22:51:50 | プログラミング/julia/インストール | 13,522 | +1 | -2 | 表示 | 差分 | 選択 |
| 2018/4/11 13:51:50 | プログラミング/julia/インストール | 13,517 | +60 | -0 | 表示 | 差分 | 選択 |
| 2018/4/11 13:25:59 | プログラミング/julia/インストール | 11,643 | +4 | -0 | 表示 | 差分 | 選択 |
| 2018/4/3 10:18:43 | プログラミング/julia/インストール | 11,601 | +43 | -26 | 表示 | 表示中 | 選択 |
| 2018/4/3 9:48:58 | プログラミング/julia/インストール | 11,310 | — | — | 表示 | — | 基準 |
基準: プログラミング/julia/インストール (2018/4/3 9:48:58) → 比較: プログラミング/julia/インストール (2018/4/3 10:18:43)
@@ -5,6 +5,7 @@
https://qiita.com/phigasui/items/8af41d1bcbe7ef276cfe を見ながら
LANG:console
+ $ cd
$ git clone https://github.com/JuliaLang/julia.git
$ cd julia
$ git tag | tail
@@ -22,7 +23,7 @@
$ cat /proc/cpuinfo | grep cpu.cores
cpu cores : 2
cpu cores : 2
- $ make -j3
+ $ make -j4
...
Makefile:85: recipe for target 'julia-deps' failed
@@ -87,24 +88,9 @@
$ ls deps/scratch/cmake-3.7.1-Linux-x86_64/bin/cmake
deps/scratch/cmake-3.7.1-Linux-x86_64/bin/cmake*
$ make -j4
- $ julia --version
- julia version 0.6.2
- $ julia/julia
- _
- _ _ _(_)_ | A fresh approach to technical computing
- (_) | (_) (_) | Documentation: https://docs.julialang.org
- _ _ _| |_ __ _ | Type "?help" for help.
- | | | | | | |/ _` | |
- | | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
- _/ |\__'_|_|_|\__'_| |
- |__/ | x86_64-linux-gnu
-
- julia> println("Hello world!")
- Hello world!
-
- julia> ^D
- $
+入った。
+
コンパイルには非常に時間がかかるので、できれば j
オプションで並列実行をしたいところなのだけれど、
並列実行中にエラーが出ると何が悪かったのかが
@@ -121,6 +107,27 @@
とすれば良かったみたいだ。
+以下、動作確認。
+
+ LANG:console
+ $ ./julia --version
+ julia version 0.6.2
+ $ ./julia
+ _
+ _ _ _(_)_ | A fresh approach to technical computing
+ (_) | (_) (_) | Documentation: https://docs.julialang.org
+ _ _ _| |_ __ _ | Type "?help" for help.
+ | | | | | | |/ _` | |
+ | | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
+ _/ |\__'_|_|_|\__'_| |
+ |__/ | x86_64-linux-gnu
+
+ julia> println("Hello world!")
+ Hello world!
+
+ julia> ^D
+ $
+
* jupyter も入れる [#zfda9658]
http 経由で Web ブラウザから使えるようになる。
@@ -197,7 +204,7 @@
http://localhost:3000/ へアクセスしたブラウザ上では、
-&ref(プログラミング/julia/jupyter-notebook-initial.png,,66%);
+&ref(プログラミング/julia/jupyter-notebook-initial.png,border,66%);
となった。
@@ -206,30 +213,31 @@
LANG:console
$ jupyter notebook --ip=127.0.0.1 --port=3000
-として起動した w3m を q を押して修了し、
+として起動した上記の w3m 画面にて q を押して w3m を修了すると、
LANG:console
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://127.0.0.1:3000/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-のように表示されたアドレスへブラウザからアクセスしたら、
+のようにトークン付きのアドレスを確認できる。
+
+表示されたアドレスへブラウザからアクセスしたら、
ホームディレクトリのフォルダとファイルの一覧が表示された。
そこで、
LANG:console
- $ make julia-notes
+ $ mkdir julia-notes
として、julia-notes フォルダを作成し、ブラウザでフォルダをクリックしたら、
-&ref(プログラミング/julia/jupyter-notebook-folder.png,,66%);
+&ref(プログラミング/julia/jupyter-notebook-folder.png,border,66%);
のように、空のフォルダの中味が表示された。
+でもこのままだとデフォルトで入っている python カーネルしか使えない。
-でもこのままだとデフォルトではいる python カーネルしか使えない。
-
* jupyter から julia を使えるようにする [#he446c4b]
LANG:console
@@ -291,4 +299,13 @@
使えるようになった。
-&ref(プログラミング/julia/julia-on-jupyter.png,,66%);
+&ref(プログラミング/julia/julia-on-jupyter.png,border,66%);
+
+* フォルダを指定して起動する [#i93f09c6]
+
+オプションとして --notebook-dir を渡せばいい。
+
+また、w3m の起動が必要なければ --no-browser を付ける。
+
+ LANG:console
+ $ jupyter notebook --ip=127.0.0.1 --port=3000 --notebook-dir=julia-notes --no-browser