公式から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を実行
Web service listening on port 9004
になってたらOK。
Tableau側の設定
・Tableau起動
・ヘルプ→設定とパフォーマンス→外部サービス接続の管理 を選択
・ポート:9004に設定
・[テスト接続]をクリック
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