yhat / rodeo

A data science IDE for Python
Other
3.93k stars 410 forks source link

Plotting not working despite it working in Jupyter #572

Open adah1972 opened 7 years ago

adah1972 commented 7 years ago

I am not sure whether my environment is special. I am on macOS Sierra, and I had installed Anaconda (Python 3) before installing Rodeo. I can verify that this works in Jupyter Notebook:

%matplotlib inline
from ggplot import ggplot, aes, geom_bar
import pandas as pd

# Create a dataframe
df=pd.DataFrame({"Animal":["dog","dolphin","chicken","ant","spider"],"Legs":[4,0,2,6,8]})
df.head()
ggplot(df, aes(x="Animal", weight="Legs")) + geom_bar(fill='blue')

But the same code does not work in Rodeo. I saw a broken image icon followed by seemingly correct messages:

<matplotlib.figure.Figure at 0x1181f6198>
<ggplot: (292642824)>

What can go wrong?

System information:

seantma commented 7 years ago

@adah1972 I'm on Ubuntu and running Rodeo 2.5.2 and have no issues reproducing your ggplot code. Try upgrading to 2.5.2 and see if it still has issue.

screenshot_2017-02-05_07-32-58

adah1972 commented 7 years ago

Did you test on a Mac? I was reporting a Mac-related issue.