We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40555e4 commit c40e749Copy full SHA for c40e749
examples/other_apps/streamlit_app.py
@@ -9,10 +9,19 @@
9
To run this example execute the following command:
10
$ streamlit run streamlit_app.py
11
12
+Note: to have colored traces in the streamlit app, you should always include the
13
+following code: `import plotly.io as pio; pio.templates.default = "plotly"`
14
+
15
"""
16
17
__author__ = "Jeroen Van Der Donckt"
18
19
+# Explicitely set pio.templates in order to have colored traces in the streamlit app!
20
+# -> https://discuss.streamlit.io/t/streamlit-overrides-colours-of-plotly-chart/34943/5
21
+import plotly.io as pio
22
23
+pio.templates.default = "plotly"
24
25
# 0. Create a noisy sine wave
26
import numpy as np
27
import plotly.graph_objects as go
0 commit comments