Closed Prashavu closed 1 year ago
The pycaret NLP tutorial also doesn't show any plots on databricks. Mainly the problem is, that it internally pycaret uses plotly/cufflinks to create the plots, which does not work out of the box with databricks zeppelin notebooks. Unfortunately the pycaret plot_model()
function also does not return the figure object so that it is impossible to use the databricks renderer for plotly in combination with pycaret like
import pandas as pd
import cufflinks as cf
cf.go_offline()
df = pd.DataFrame([1,2,3,3,2,1])
fig = df.iplot(asFigure=True)
# using the databricks renderer to show the figure
fig.show("databricks")
See https://github.com/nicolaskruchten/plotly_img_test/blob/master/Untitled.ipynb
@asmaier I have tested the latest rc4 release of pycaret pycaret==3.0.0rc4
on Databricks community edition. plot_model
function works fine. evaluate_model
doesn't work because of no support of IPython.
In Databricks Runtime 11.0 and above, Python notebooks use the IPython kernel to execute Python code.
Read More: https://docs.databricks.com/notebooks/ipython-kernel.html
pycaret version checks
[X] I have checked that this issue has not already been reported here.
[X] I have confirmed this bug exists on the latest version of pycaret.
[ ] I have confirmed this bug exists on the master branch of pycaret (pip install -U git+https://github.com/pycaret/pycaret.git@master).
Issue Description
No graph/plot is produced after riunning the code
Reproducible Example
Expected Behavior
matplotlib plot expected
Actual Results
Installed Versions