jupyter-scala 윈도우에서 설치 및 사용

watch_later 목요일, 12월 07, 2017

https://github.com/jupyter-scala/jupyter-scala

PS C:\Users\zeewhon\IdeaProjects\jupyter-scala> jupyter-scala.ps1
jupyter-scala.ps1 : 'jupyter-scala.ps1' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되
지 않습니다. 이름이 정확한지 확인하고 경로가 포함된 경우 경로가 올바른지 검증한 다음 다시 시도하십시오.
위치 줄:1 문자:1
+ jupyter-scala.ps1
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (jupyter-scala.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

정책 문제

https://m.blog.naver.com/PostView.nhn?blogId=icebear2304&logNo=140134967306&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F


PS C:\WINDOWS\system32> Set-ExecutionPolicy RemoteSigned

실행 규칙 변경
실행 정책은 신뢰하지 않는 스크립트로부터 사용자를 보호합니다. 실행 정책을 변경하면 about_Execution_Policies 도움말
항목(https://go.microsoft.com/fwlink/?LinkID=135170)에 설명된 보안 위험에 노출될 수 있습니다. 실행 정책을
변경하시겠습니까?
[Y] 예(Y)  [A] 모두 예(A)  [N] 아니요(N)  [L] 모두 아니요(L)  [S] 일시 중단(S)  [?] 도움말 (기본값은 "N"): y
PS C:\WINDOWS\system32>

재실행

PS C:\Users\youngsoo\IdeaProjects\jupyter-scala> ./jupyter-scala.ps1
Getting coursier launcher...
Done
Downloaded 1 missing file(s) / 1

......

https://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.11/7.2… (75.92 %, 89579https://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.11/7.2… (83.14 %, 98099https://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.11/7.2… (87.45 %, 10317https://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.11/7.2… (92.45 %, 10907https://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.11/7.2… (96.20 %, 11350…

Downloaded https://repo1.maven.org/maven2/org/scalaz/scalaz-core_2.11/7.2.8/scalaz-core_2.11-7.2.8.jar
Generated C:\Users\youngsoo\AppData\Roaming\jupyter\kernels\scala\kernel.json

Run jupyter console with this kernel with
  jupyter console --kernel scala

Use this kernel from Jupyter notebook, running
  jupyter notebook
and selecting the "Scala" kernel.

PS C:\Users\youngsoo\IdeaProjects\jupyter-scala>

기본 명령창이나 파워쉘에서 주피터가 실행 안 됨.

enter image description here

커널 설치 됐으면 확인.

(C:\ProgramData\Anaconda3) C:\Users\youngsoo>jupyter kernelspec list
Available kernels:
  scala      C:\Users\youngsoo\AppData\Roaming\jupyter\kernels\scala
  python3    C:\ProgramData\Anaconda3\share\jupyter\kernels\python3

(C:\ProgramData\Anaconda3) C:\Users\youngsoo>

실행

enter image description here

새 스칼라 노트북 생성

enter image description here

잘 됨.

Written with StackEdit.



sentiment_satisfied Emoticon