juliaup による julia version 更新とjupyter labへの登録

August 28, 2024 – 3:14 pm

juliaup で julia の最新versionを取得し、状態の確認

(jupyter_lab) [anacon@Server02 ~]$ juliaup update
(jupyter_lab) [anacon@Server02 ~]$ juliaup status
 Default  Channel  Version                 Update 
--------------------------------------------------
          1.10.3   1.10.3+0.x64.linux.gnu         
          1.10.4   1.10.4+0.x64.linux.gnu         
       *  release  1.10.4+0.x64.linux.gnu         

更新前のjupyterのkernelをremove:

(jupyter_lab) [anacon@Server02 ~]$ jupyter kernelspec remove julia-1.10
Kernel specs to remove:
  julia-1.10            /home/anacon/.local/share/jupyter/kernels/julia-1.10
Remove 1 kernel specs [y/N]: y
Removed /home/anacon/.local/share/jupyter/kernels/julia-1.10

更新後のjuliaを立ち上げ、jupyter labに結び付ける:

(jupyter_lab) [anacon@Server02 ~]$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.4 (2024-06-04)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.10) pkg> add IJulia
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.10/Project.toml`
  No Changes to `~/.julia/environments/v1.10/Manifest.toml`

(@v1.10) pkg> build IJulia
    Building Conda ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/b19db3927f0db4151cb86d073689f2428e524576/build.log`
    Building IJulia → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/1702f79fa30f56b68d5b2fd6fb3a9a14ff6f9130/build.log`

julia> exit()

 
jupyter の kernelspec の listを確認:

(jupyter_lab) [anacon@Server02 ~]$ jupyter kernelspec list
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Available kernels:
  python3       /home/anacon/anaconda3/envs/jupyter_lab/share/jupyter/kernels/python3
  javascript    /home/anacon/.local/share/jupyter/kernels/javascript
  julia-1.10    /home/anacon/.local/share/jupyter/kernels/julia-1.10

 
jupyter labの立ち上げ:

(jupyter_lab) [anacon@Server02 ~]$ nohup jupyter lab >> jupyter.log 2>&1 &

  

jupyter lab の lancher スナップショット:

  


Post a Comment