mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
Google Colab support with viewer (#747)
* allows bridge server to run on a different machine * added script * update version * starting docs * update docs and scripts * ngrok support * use tcp * moving webrtc outside bridge server. wop * lazy commit * lazy commit * running code. webrtc not working * lazy commit * better logic for webrtc connection * cleanup * todo comment * working webrtc * removed logging * fixing black * fix eslint * fix python version * fix readme * misc cleanup * small docs fix Co-authored-by: Ethan Weber <ethanweber@Ethans-MacBook-Pro.local>
This commit is contained in:
1 parent
a4755a1349
commit
d71c05f256
37 files changed
+324
-329
No files matched your search
@@ -23,6 +23,7 @@ from typing import Any, Dict
|
||||
|
||||
from rich.console import Console
|
||||
|
||||
CONSOLE = Console()
|
||||
# pylint: disable=import-outside-toplevel
|
||||
|
||||
# cannot use mutable types directly within dataclass; abstracting default factory calls
|
||||
@@ -44,7 +45,6 @@ def convert_markup_to_ansi(markup_string: str) -> str:
|
||||
Returns:
|
||||
Text formatted via ANSI sequences.
|
||||
"""
|
||||
console = Console()
|
||||
with console.capture() as out:
|
||||
console.print(markup_string, soft_wrap=True)
|
||||
with CONSOLE.capture() as out:
|
||||
CONSOLE.print(markup_string, soft_wrap=True)
|
||||
return out.get()
|
||||
Reference in new issue
Block a user