簡単な計算から統計処理、機械学習プログラムまでをTableauでビジュアライズする法
公式からanacondaインストーラをダウンロード
仮想環境を爆誕させる
$ 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に設定
success!
参考
・TabPy入門【環境構築】
・alexloth.com
・外部サービスに式を渡す(公式ヘルプ)
・The endpoint you're trying to query did not respond. Please make sure the endpoint exists and the correct set of arguments are provided.
・Building advanced analytics applications with TabPy
・TableauとPythonの連携環境(TabPy)構築