Skip to content

Commit

Permalink
Fix imports, tweak docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Apr 14, 2023
1 parent 377e61d commit 3bf8cac
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# viser

`viser` is a library for interactive 3D visualization + Python, inspired by the
best bits of the
**[ [API Reference](https://brentyi.github.io/viser) ]**

`viser` is a library for interactive 3D visualization + Python, inspired by
our favorite bits of the
[Nerfstudio viewer](https://github.com/nerfstudio-project/nerfstudio),
[Pangolin](https://github.com/stevenlovegrove/Pangolin),
[rviz](https://wiki.ros.org/rviz/), and
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

|mypy| |nbsp| |pyright| |nbsp| |typescript| |nbsp| |versions|

`viser` is a library for interactive 3D visualization + Python, inspired by the
best bits of the
`viser` is a library for interactive 3D visualization + Python, inspired by
our favorite bits of the
[Nerfstudio viewer](https://github.com/nerfstudio-project/nerfstudio),
[Pangolin](https://github.com/stevenlovegrove/Pangolin),
[rviz](https://wiki.ros.org/rviz/), and
Expand Down
4 changes: 2 additions & 2 deletions viser/infra/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Websocket-based communication infrastructure.
""":mod:`viser.infra` provides WebSocket-based communication infrastructure.
We implement abstractions for:
- Launching a websocket+HTTP server on a shared port.
- Launching a WebSocket+HTTP server on a shared port.
- Registering callbacks for connection events and incoming messages.
- Asynchronous message sending, both broadcasted and to individual clients.
- Defining dataclass-based message types.
Expand Down
4 changes: 2 additions & 2 deletions viser/infra/_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ class Server(MessageHandler):
"""Websocket server abstraction. Communicates asynchronously with client
applications.
By default, all messages`) are broadcasted to all connected clients.
By default, all messages are broadcasted to all connected clients.
To send messages to an individual client, we can use `on_client_connect()`` to
To send messages to an individual client, we can use `on_client_connect()` to
retrieve client handles.
"""

Expand Down
2 changes: 1 addition & 1 deletion viser/infra/_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import numpy as onp

if TYPE_CHECKING:
from ._core import ClientId
from ._infra import ClientId
else:
ClientId = Any

Expand Down

0 comments on commit 3bf8cac

Please sign in to comment.