Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Plotly in Python Tool

jcktwnsnd
6 - Meteoroid

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!

 

 

4 REPLIES 4
DiganP
Alteryx Alumni (Retired)

@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
jcktwnsnd
6 - Meteoroid

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 

AndrewKramer
Alteryx Alumni (Retired)

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. 

jcktwnsnd
6 - Meteoroid

That's done the trick, thanks!

 

Jack

Labels