Skip to content

Commit bb18fdd

Browse files
authored
Merge pull request #164 from rapidsai/branch-0.9
[RELEASE] v0.9
2 parents 8ed1064 + 0aae356 commit bb18fdd

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
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)

jupyterlab_nvdashboard/server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
2+
import os
33
from bokeh.server.server import Server
44
from tornado.ioloop import IOLoop
55
from tornado import web
@@ -37,6 +37,8 @@ def go():
3737
port = int(sys.argv[1])
3838
else:
3939
port = DEFAULT_PORT
40+
41+
os.environ['BOKEH_RESOURCES'] = 'cdn'
4042
server = Server(routes, port=port, allow_websocket_origin=["*"])
4143
server.start()
4244

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-nvdashboard",
3-
"version": "0.8.0",
3+
"version": "0.9.0",
44
"description": "A JupyterLab extension for displaying GPU usage dashboards",
55
"keywords": [
66
"jupyter",

0 commit comments

Comments
 (0)