Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get rid of vtk msgs
  • Loading branch information
adam-urbanczyk committed Mar 17, 2025
commit 4a98f6abe979f3b5aeec20b9edc38fb23404d453
10 changes: 9 additions & 1 deletion cadquery/fig.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from typing import Optional
from threading import Thread
from itertools import chain
from webbrowser import open_new_tab

from trame.app import get_server, Server
from trame.widgets import html, vtk as vtk_widgets, client
Expand Down Expand Up @@ -131,7 +132,11 @@ def _run_loop():
self.thread.start()

coro = server.start(
thread=True, exec_mode="coroutine", port=port, open_browser=True
thread=True,
exec_mode="coroutine",
port=port,
open_browser=False,
show_connection_info=False,
)

if coro:
Expand All @@ -144,6 +149,9 @@ def _run_loop():
self.empty = True
self.last = None

# open webbrowser
open_new_tab(f"http://localhost:{port}")

def _run(self, coro):

run_coroutine_threadsafe(coro, self.loop)
Expand Down