Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
SOLVED

Plotly in Python Tool

Alteryx Partner

Hi Everyone,

 

Has anyone tried to use the 'plotly' package in the Python tool?

 

I have been using it to generate a chart after prepping some data in Alteryx and once the chart has been created in the Jupyter environment, I go to any other tool in the workflow and I get this message and the whole thing freezes:

 

Capture.PNG

 

If anyone has seen anything similar or has any ideas it would be much appreciated!

 

 

Alteryx
Alteryx

@jcktwnsnd It seems to work fine for me. Are you able to share your python code or the workflow with the dataset here?

 

Capture.PNG

Digan
Alteryx
Alteryx Partner

Hey, thanks for getting back to me. I've attached a simple example recreating the error.

 

Once I have run the cell generating the chart, everything I do in the workflow then generates the 'unhandled exception' error.

 

Cheers 

Alteryx
Alteryx

You'll need to turn on init_notebook_mode. Add the following to your first cell: 

 

from plotly.offline import  init_notebook_mode
init_notebook_mode(connected=True)

 

 

Let me know if this fixes the problem. You may need to create a new workflow. 

Alteryx Partner

That's done the trick, thanks!

 

Jack

Labels