-
15. Re: Tableau Integration with Python - Step by Step
Michal Batko Sep 30, 2017 12:09 PM (in response to Pawan Kumar)Hello,
I'm a beginner admin and recently I've inherited few instances of Tableau Server. My users are very interested in using TabPy and asked me to setup the service in our environments.
I looked into Installation Guide available on TabPy GitHub page, but I have a few questions and would appreciate if anyone could shed some light:
1) Does TabPy need to be installed on the same machine as Tableau Server, or can it be installed on separate machine? What would be the best practice here?
2) I have 3 independent machines with Tableau Server. Do I need 3 separate instances of TabPy, or maybe a single TabPy can support multiple Tableau Servers?
3) Can I install TabPy on machine that has no access to the Internet? I understand that Internet access is needed during installation to download Anaconda and Python packages, but once TabPy is installed can it work offline?
-
16. Re: Tableau Integration with Python - Step by Step
Parmeshwar Sangangiri Sep 30, 2017 8:03 PM (in response to Michal Batko)2 of 2 people found this helpfulHi Michal,
PFB my response to the queries:
1) Does TabPy need to be installed on the same machine as Tableau Server, or can it be installed on separate machine? What would be the best practice here?
No, you can install TabPy on any machine.
2) I have 3 independent machines with Tableau Server. Do I need 3 separate instances of TabPy, or maybe a single TabPy can support multiple Tableau Servers?
Yes a single Tabpy Server should fulfill the need where users can connect to installed Tabpy server from desktop and publish to any Tableau Server provided you specify port and server details in the respective server using below commands.
tabadmin set vizqlserver.extsvc.host
tabadmin set vizqlserver.extsvc.port
3) Can I install TabPy on machine that has no access to the Internet? I understand that Internet access is needed during installation to download Anaconda and Python packages, but once TabPy is installed can it work offline?
I'm not sure about if it can work offline.
Thanks,
Paramesh -
17. Re: Tableau Integration with Python - Step by Step
Parmeshwar Sangangiri Sep 30, 2017 8:03 PM (in response to Pawan Kumar)Hi Pavan/Bora,
Above article and set of instructions are very useful which provides clear explanation of what each step does. I've been able to install TabPy successfully, connect from desktop, publish to server and everything works great. However, as we are aware of the fact that python functions works as long as command window is open and once the window is closed stops TabPy server.
I was trying to create a shorcut following your instructions but have been thrown with an error message which says "Expected End of Statement", attached is the error message.
Following is the flow chart which I followed.
created a shortcut with below commands:
C:\Windows\System32\wscript.exe C:\Users\CUSTOM_USERS\invis.vbs "C:\Users\CUSTOM_USERS\Anaconda\envs\Tableau-Python-Server\Lib\site-packages\tabpy_server\startup.bat" %*
Created file named invis.vbs under the speicified location with following content.
Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run """" & WScript.Arguments(0) & """" & sargs, 0, False
I've never done VB scripting and not sure what might be causing the issue. Any assistance is really appreciated. Provided details in the following link as well.
https://community.tableau.com/docs/DOC-10856?signin=dc8ca047e40ed5ff757ee02561c59e8f#comment-29595
-
18. Re: Tableau Integration with Python - Step by Step
Bora Beran Oct 1, 2017 1:54 AM (in response to Parmeshwar Sangangiri)1 of 1 people found this helpfulIf offline means behind a firewall where it can't reach outside and it can't be reached from outside while it is accessible within the network, the answer is yes. TabPy itself has no external dependencies to run.