Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Streamz + Panel Plotting Issue

Abierto
#344 2 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
jupyter-notebook, pandas, python

Línea de trabajo

Start by running the supplied Streamz and Panel plotting example in JupyterLab and compare its output with the attached screenshot. Trace the stream update and line-plot rendering path to identify why an extra line returns to the starting point; done means the reproduced chart no longer contains that line.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Im trying to plot a simple chart with streamz + panel in jupyter lab but there seems to be an issue at the end: there is an extra line that goes back to the starting point. This is the code that I wrote and the plot that I get:

beacon_sdf=sDataFrame(example=pd.DataFrame({'interval_duration_sec':[],'sim_time_sec':[]},index=pd.DatetimeIndex([])))

def beacon_Line(beacon_sdf):
    return beacon_sdf.hvplot.line('sim_time_sec','interval_duration_sec')

beacon_Line(beacon_sdf)

hvplot_stream = beacon_sdf.stream.map(beacon_Line)

hvplot_pane = pn.pane.Streamz(hvplot_stream, height=350, always_watch=True,widgets={'Simulation Time(sec)': pn.widgets.FloatSlider})
    
def emit():
    for index,rows in beacon_df.iterrows():
        beacon_sdf.stream.emit(pd.DataFrame({'interval_duration_sec':rows['interval_duration_sec'],'sim_time_sec':rows['sim_time_sec']},index=pd.DatetimeIndex([pd.datetime.now()])))
        sleep(0.01)

hvplot_pane.add_periodic_callback(emit,period=500,timeout=2)
Screen Shot 2020-06-23 at 12 01 37 PM

Does anyone have any thoughts? The source data is not the problem.

Lenguaje dominante
Python
Estrellas
1.3k
Forks
149
Merge medio
17 h 39 min
PR fusionados (30 d)
1

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de python-streamz/streamz

Todos los issues de python-streamz/streamz

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.