tableau / TabPy

Execute Python code on the fly and display results in Tableau visualizations:
https://tableau.github.io/TabPy/
MIT License
1.56k stars 598 forks source link

Installing tabpy on PyCharm IDE #355

Closed remeoj closed 4 years ago

remeoj commented 4 years ago

Environment information:

Describe the issue So I'm new to using tabpy, but a lot of the tutorials and walkthroughs online are of older versions where we use anaconda. Now, it seems like the way to do this is to install tabpy through a pip package and then to run "tabpy." My issue is running this. I don't know how to use this in PyCharm. Where do I run the tabpy command? In the terminal? When I try to do this in my project file, it says that 'tabpy is not recognized as an internal or external command.' So i'm not sure how I'm supposed to run the command. Any help would be appreciated. Thank you!

To Reproduce Installed tabpy through pycharm's project interpreter.

Expected behavior I assume whats supposed to happen is a tabpy server is supposed to initiate in the terminal with the server being a localhost with a port of 9004

Additional context I also tried to run the tabpy.py file in the terminal and that called the file, but I ran into errors such as this.

image

0golovatyi commented 4 years ago

@JoemerRamos You don't need to navigate to TabPy package folder, run Python and so on. It is as simple as installing the package and starting TabPy, just follow instructions at https://github.com/tableau/TabPy/blob/master/docs/server-install.md.

remeoj commented 4 years ago

But where do you run the following command: tabpy ? Do you go to the idle python software? Where do i start TabPy

0golovatyi commented 4 years ago

Run tabpy from the same environment where you installed the package from. In your example above that would be the command line window.

remeoj commented 4 years ago

In this case, I installed the package in my PyCharm IDE, and I get an error image

0golovatyi commented 4 years ago

After you installed the package with pip install tabpy command confirm you see it in the list of installed packages with pip list.

remeoj commented 4 years ago

Yeah it shows