mpastell / Rpyplot

R interface to matplotlib
13 stars 6 forks source link

It doesn't show in Jupyter notebook. #6

Open piperod opened 7 years ago

piperod commented 7 years ago

I tried to run these command for plotting a simple graph in a jupyter notebook with R kernel:

pyfigure()
pyplot(x,norm(x),color='red')
pyplot(x,nmse(4,x),color='green')
pyplot(x,laplace(4,x), color='blue')
pyshow()

However nothing is shown. In the terminal this error showed up: NameError: name 'plt' is not defined

mpastell commented 7 years ago

There is no Jupyter notebook support in this package and I don't plan to implement it.

Does the code run in the terminal?

piperod commented 7 years ago

Ok, thanks. Yes it runs good. Sometimes it crashes when I executed from the RStudio, but from the terminal runs ok.