Skip to content

Commit 1aaf8bf

Browse files
committed
Update kernel maker
1 parent 5cee33f commit 1aaf8bf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

scripts/pipenv_keneral_maker.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# 프로젝트 이름을 인자로 받습니다.
4+
PROJECT_NAME=$1
5+
6+
# pipenv 환경으로 이동합니다.
7+
cd $PROJECT_NAME
8+
9+
# pipenv 환경을 활성화합니다.
10+
pipenv shell
11+
12+
# Jupyter와 ipykernel 패키지가 설치되어 있는지 확인하고, 없다면 설치합니다.
13+
pipenv run pip install ipykernel #jupyter
14+
15+
# ipykernel을 사용하여 Jupyter 커널을 생성합니다.
16+
pipenv run python -m ipykernel install --user --name=${PROJECT_NAME} --display-name=${PROJECT_NAME}
17+
18+
# 원래 디렉토리로 돌아옵니다.
19+
cd ..
20+
21+
echo "${PROJECT_NAME}에 대한 Jupyter 커널이 생성되었습니다."

0 commit comments

Comments
 (0)