Mais conteúdo relacionado
Mais de SAS Institute Japan (16)
20160721 SAS and Jupyter
- 2. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
アブストラクト
SASのオープンソースプロジェクトSAS Kernel for
Jupyterを使用したJupyter NotebookでのSASプログラ
ミングを紹介する。
2
- 3. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
アジェンダ
• Jupyter Notebookとはなにか?
• SAS kernel for Jupyterの入手方法
• よくある質問
• デモンストレーション
3
- 4. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
Jupyter Notebookとは何か?
Jupyter Notebookは、Webアプリ
ケーションで、実際のプログラミングコー
ドや、数式、ビジュアライゼーション、説
明テキストなどを含むドキュメントを作
成し、共有することが可能
データクレンジング、データの変換、数
値的なシミュレーション、統計モデリン
グ、機械学習など様々なことができる
4
- 5. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
Jupyterの簡単な歴史
• 2001 Pythonを対話的に実行するためのシェルであるIPythonリリース
• 2011 Webから利用可能とするNotebookインターフェースが
IPythonに追加される(release 0.12)
• 2014 IPythonからスピンオフする形で、Project Jupyterができる。
IPythonはPythonシェルとJupyterのためのカーネルとして継続
する一方で、Notebookと、IPythonの言語に依存しない部分は
Jupyterに移管された。JupyterはRやRubyなどの言語を追加し
た。
今では、Jupyterは、SAS言語を含む50以上の言語に対応している。
5
- 6. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
SAS Kernel for Jupyterの入手方法その①
方法1 – pipを使用する
• 必要なのは1行だけ:
• pip3 install sas_kernel
• 参考資料
• https://testpypi.python.org/pypi?:action=display&name=SAS_kernel&version=1.0
• https://testpypi.python.org/pypi?:action=display&name=saspy&version=1.0
• https://pip.pypa.io/en/stable/user_guide/
• https://en.wikipedia.org/wiki/Pip_(package_manager)
6
- 7. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
SAS Kernel for Jupyterの入手方法その②
方法2 – GitHub
• リポジトリの複製
• git clone https://github.com/sassoftware/sas_kernel.git
• git clone https://github.com/sassoftware/saspy.git
• リポジトリの中で下記を実行
• python3 setup.py install
7
- 9. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
よくある質問
• 費用はかかるのですか?
いいえ、無料です。sas_kernelはオープンソースです。
• SASライセンスは必要ですか?
はい、必要です。sas_kernelはお持ちのライセンスされたSASと一緒に使用することにな
ります。
• システム必要条件はどうなっていますか?
SAS9.4以上(含むSAS Viya)、Python3、Linux OSです。
• これは既存のSAS製品を置き換えるものですか?
いいえ、これはSASにアクセスするもう一つのインターフェースです。
9
- 10. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
参考資料
• GitHub sas_kernel
• Jupyter
• Jupyter kernels list
• SAS Global Forum 2016 Tech Connect mention of sas_kernel (7:03)
• SAS CodeMirror mode
10
- 11. Company Confidential - For Internal Use Only
Copyright © 2016, SAS Institute Inc. All rights reserved.
THANK YOU!
www.sas.com/jp
http://www.sascom.jp/blog/
Questions?
11