Loading pyproject.toml +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ Changelog = "https://code.ornl.gov/ndip/public-packages/nova-trame/blob/main/CHA [tool.poetry] name = "nova-trame" version = "0.20.1" version = "0.20.2" description = "A Python Package for injecting curated themes and custom components into Trame applications" authors = ["Duggan, John <dugganjw@ornl.gov>"] readme = "README.md" Loading src/nova/trame/view/components/visualization/matplotlib_figure.py +4 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ import json import os import socketserver from asyncio import FIRST_COMPLETED, new_event_loop, set_event_loop, wait from asyncio import FIRST_COMPLETED, create_task, new_event_loop, set_event_loop, wait from io import BytesIO from mimetypes import types_map from pathlib import Path Loading Loading @@ -188,9 +188,9 @@ class MatplotlibFigure(matplotlib.Figure): raise ValueError("unexpected message type: %s", print(msg)) # Forward websocket data in both directions await wait( [ws_forward(ws_server, ws_client), ws_forward(ws_client, ws_server)], return_when=FIRST_COMPLETED ) server_to_client = create_task(ws_forward(ws_server, ws_client)) client_to_server = create_task(ws_forward(ws_client, ws_server)) await wait([server_to_client, client_to_server], return_when=FIRST_COMPLETED) await client_session.close() # Ensure the connection is cleaned up when the Trame client disconnects. return ws_server Loading Loading
pyproject.toml +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ Changelog = "https://code.ornl.gov/ndip/public-packages/nova-trame/blob/main/CHA [tool.poetry] name = "nova-trame" version = "0.20.1" version = "0.20.2" description = "A Python Package for injecting curated themes and custom components into Trame applications" authors = ["Duggan, John <dugganjw@ornl.gov>"] readme = "README.md" Loading
src/nova/trame/view/components/visualization/matplotlib_figure.py +4 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ import json import os import socketserver from asyncio import FIRST_COMPLETED, new_event_loop, set_event_loop, wait from asyncio import FIRST_COMPLETED, create_task, new_event_loop, set_event_loop, wait from io import BytesIO from mimetypes import types_map from pathlib import Path Loading Loading @@ -188,9 +188,9 @@ class MatplotlibFigure(matplotlib.Figure): raise ValueError("unexpected message type: %s", print(msg)) # Forward websocket data in both directions await wait( [ws_forward(ws_server, ws_client), ws_forward(ws_client, ws_server)], return_when=FIRST_COMPLETED ) server_to_client = create_task(ws_forward(ws_server, ws_client)) client_to_server = create_task(ws_forward(ws_client, ws_server)) await wait([server_to_client, client_to_server], return_when=FIRST_COMPLETED) await client_session.close() # Ensure the connection is cleaned up when the Trame client disconnects. return ws_server Loading