簡単な計算から統計処理や機械学習プログラムまでをTableauにビジュアライズする法
公式からanacondaインストーラをダウンロード
https://www.anaconda.com/download/#macos
仮想環境を爆誕させる
conda create -n Tableau-Python-Server python=3.6 anaconda
仮想環境を有効化する
conda activate Tableau-Python-Server
Tabpyパッケージを入れる
conda install -c pkgs/free tabpy-server
ここ↓に入ってた
envs/Tableau-Python-Server/lib/python3.6/site-packages/tabpy_server/
中にあるファイルstarter.sh(winの方はstarter.bat)を実行
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)構築