4
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Tabpy接続(Tableau+Python)をした日

Last updated at Posted at 2019-01-23

簡単な計算から統計処理、機械学習プログラムまでをTableauでビジュアライズする法

##公式からanacondaインストーラをダウンロード
https://www.anaconda.com/download/#macos

###仮想環境を爆誕させる

$ conda create -n Tableau-Python-Server python=3.X anaconda

*Xは適宜

###仮想環境を有効化する

$ source activate Tableau-Python-Server

###Tabpyパッケージを入れる

$ conda install -c pkgs/free tabpy-server

ここ↓に入ってた

anaconda3/envs/Tableau-Python-Server/lib/python3.6/site-packages/tabpy_server/

中にあるファイルstartup.sh(winの方はstartup.bat)を実行

$ sh startup.sh
Web service listening on port 9004

になってたらOK。

#Tableau側の設定
・Tableau起動
・ヘルプ→設定とパフォーマンス→外部サービス接続の管理 を選択
・ポート:9004に設定

・[テスト接続]をクリック
スクリーンショット 2019-01-23 14.42.54.png

###success!

##参考
・[TabPy入門【環境構築】]
(https://tableau-i-ways.com/column/tabpy_construction)
・[alexloth.com]
(http://alexloth.com/2016/11/06/tabpy-tutorial-integrating-python-tableau-advanced-analytics/)
・[外部サービスに式を渡す(公式ヘルプ)]
(https://onlinehelp.tableau.com/current/pro/desktop/ja-jp/r_connection_manage.htm)
・[The endpoint you're trying to query did not respond. Please make sure the endpoint exists and the correct set of arguments are provided.]
(https://github.com/tableau/TabPy/issues/44)
・[Building advanced analytics applications with TabPy]
(https://www.tableau.com/about/blog/2017/1/building-advanced-analytics-applications-tabpy-64916)
・[TableauとPythonの連携環境(TabPy)構築]
(https://datadesigner.jp/tabpy-setup)

4
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?