Using Plotly in Python

Hey replit,

Why can’t I get this plotly code to display anything in replit?


I ran your code locally and it worked perfectly, but I wasn’t able to get your code to run on Replit’s end. Judging from the error message, Plotly is trying to output the graph on a Replit port (which is what Plotly normally does), but Replit is blocking this for some reason.

I would recommend giving Matplotlib a try, it’s very similar to Plotly and it works properly on Replit.