-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cee33f
commit 1aaf8bf
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# 프로젝트 이름을 인자로 받습니다. | ||
PROJECT_NAME=$1 | ||
|
||
# pipenv 환경으로 이동합니다. | ||
cd $PROJECT_NAME | ||
|
||
# pipenv 환경을 활성화합니다. | ||
pipenv shell | ||
|
||
# Jupyter와 ipykernel 패키지가 설치되어 있는지 확인하고, 없다면 설치합니다. | ||
pipenv run pip install ipykernel #jupyter | ||
|
||
# ipykernel을 사용하여 Jupyter 커널을 생성합니다. | ||
pipenv run python -m ipykernel install --user --name=${PROJECT_NAME} --display-name=${PROJECT_NAME} | ||
|
||
# 원래 디렉토리로 돌아옵니다. | ||
cd .. | ||
|
||
echo "${PROJECT_NAME}에 대한 Jupyter 커널이 생성되었습니다." |