Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Streamz + Panel Plotting Issue

オープン
#344 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
jupyter-notebook, pandas, python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
1.3k
フォーク
149
平均マージ
17時間 39分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python-streamz/streamz のほかの issue

python-streamz/streamz の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。