Jupyter에 Fortran 커널 설치하기

By | 2022년 01월 04일

Jupyter에 Fortran kernel을 설치하면, jupyter notebook을 사용하여 fortran을 연습할 수 있다. 여기서는 Fortan kernel을 설치하는 방법을 간단히 정리한다.

전제조건

  • ubuntu 20.04
  • python3 가 설치됨
  • jupyter notebook을 jupyter 사용자 계정이에 설치

Ubuntu에서 gfortran compiler를 사용하려면 다음과 같이 먼저 gfortran과 git을 설치한다.

# sudo apt install gfortran git

그리고 jupyter로 로그인한다.

# su - jupyter
# cd Downloads 

그리고 다음의 명령을 실행하자.

# git clone https://github.com/ZedThree/jupyter-fortran-kernel.git
# pip install  --user jupyter-fortran-kernel
# cd jupyter-fortran-kernel
# jupyter-kernelspec install fortran_spec/ --user

이제 jupyter notebook을 열면 메뉴에 fortran 버튼이 보일 것이다.

Reference

  1. Minimal Fortran kernel for Jupyter

답글 남기기