Plot stuff
Drop files here
or click to upload
import streamlit as st
import numpy as np
import plotly.graph_objs as go
st.title("Interactive Plot with Plotly")
# Create sample data
x = np.linspace(0, 10, 100)
y = np.sin(x)
# Create a Plotly figure
fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y, mode='lines', name='Sine Wave'))
# Display the figure
st.plotly_chart(fig, use_container_width=True)
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?