Skip to content

Commit b18df67

Browse files
Retarget #132 to branch-0.9 (#162)
* remove bokeh warning (#132) Co-authored-by: Jacob Tomlinson <[email protected]> * Revert "remove bokeh warning (#132)" (#161) This reverts commit f40fe10. * Revert "Revert "remove bokeh warning (#132)" (#161)" This reverts commit f77266d. --------- Co-authored-by: Reo Ono <[email protected]>
1 parent 6d913ed commit b18df67

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

jupyterlab_nvdashboard/apps/cpu.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def resource_timeline(doc):
8484
x_range=x_range,
8585
tools=tools,
8686
)
87-
disk_fig.line(source=source, x="time", y="disk-read", color="blue", legend="Read")
88-
disk_fig.line(source=source, x="time", y="disk-write", color="red", legend="Write")
87+
disk_fig.line(source=source, x="time", y="disk-read", color="blue", legend_label="Read")
88+
disk_fig.line(source=source, x="time", y="disk-write", color="red", legend_label="Write")
8989
disk_fig.yaxis.formatter = NumeralTickFormatter(format="0.0b")
9090
disk_fig.legend.location = "top_left"
9191

@@ -96,8 +96,8 @@ def resource_timeline(doc):
9696
x_range=x_range,
9797
tools=tools,
9898
)
99-
net_fig.line(source=source, x="time", y="net-read", color="blue", legend="Recv")
100-
net_fig.line(source=source, x="time", y="net-sent", color="red", legend="Send")
99+
net_fig.line(source=source, x="time", y="net-read", color="blue", legend_label="Recv")
100+
net_fig.line(source=source, x="time", y="net-sent", color="red", legend_label="Send")
101101
net_fig.yaxis.formatter = NumeralTickFormatter(format="0.0b")
102102
net_fig.legend.location = "top_left"
103103

jupyterlab_nvdashboard/apps/gpu.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,10 @@ def _get_color(ind):
486486
tools=tools,
487487
)
488488
tot_fig.line(
489-
source=source, x="time", y="gpu-total", color="blue", legend="Total-GPU"
489+
source=source, x="time", y="gpu-total", color="blue", legend_label="Total-GPU"
490490
)
491491
tot_fig.line(
492-
source=source, x="time", y="memory-total", color="red", legend="Total-Memory"
492+
source=source, x="time", y="memory-total", color="red", legend_label="Total-Memory"
493493
)
494494
tot_fig.legend.location = "top_left"
495495

@@ -502,8 +502,8 @@ def _get_color(ind):
502502
x_range=x_range,
503503
tools=tools,
504504
)
505-
pci_fig.line(source=source, x="time", y="tx-total", color="blue", legend="TX")
506-
pci_fig.line(source=source, x="time", y="rx-total", color="red", legend="RX")
505+
pci_fig.line(source=source, x="time", y="tx-total", color="blue", legend_label="TX")
506+
pci_fig.line(source=source, x="time", y="rx-total", color="red", legend_label="RX")
507507
pci_fig.yaxis.formatter = NumeralTickFormatter(format="0.0 b")
508508
pci_fig.legend.location = "top_left"
509509
figures.append(pci_fig)

0 commit comments

Comments
 (0)