-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split examples by language #1181
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e9245db
Split python and rust examples into separate folders
emilk df4737a
objectron: ensure logging reaches the screen
emilk 6e829e4
try fix
emilk 2ae70b9
remove dead shellscript
emilk 497ed70
fix objectron build-script
emilk a3eeb5a
Fixes
emilk 9f90b82
Fix Rust objectron demo
emilk 1c1b95d
Add readme for rust examples
emilk 63e3e51
lint
emilk 6fa1237
fix mypy
emilk 06b8785
Merge branch 'main' into emilk/split-examples-by-language
teh-cmc 47fcaee
Improve the docs of `rerun` (#1179)
emilk 7a3041d
Add newlines before types, `impl`, `fn`, and docstrings
emilk 2bea9d7
Update examples/requirements.txt
emilk a5dc541
Mark git directories as safe for our docker_ci container and fix carg…
jleibs b1557d1
Run cargo check after patching pre-release (#1190)
jleibs 74be952
Allow logging the contents of an image file, not by path (#1193)
emilk a2a7780
Add --dataset and --resize flags to colmap (#1177)
jleibs e94670c
Enable `--web-viewer` in the Python Wheels (#1182)
emilk 59cc8b7
Install web dependencies before running cargo check (#1196)
jleibs 8bb3bf6
Update arrow2, arrow2_convert and polars (#1189)
emilk 63244bc
Turn on and fix Python linting of examples (#1191)
emilk e525e3b
Merge branch 'main' into emilk/split-examples-by-language
emilk e748f92
Update the paths in .flake8
emilk e921307
Merge branch 'main' into emilk/split-examples-by-language
teh-cmc cbf1a51
examples/deep_sdf: sort scenes by relevance instead of lexically + be…
teh-cmc 82b4a59
examples/raw_mesh: sort scenes by relevance instead of lexically + be…
teh-cmc c37d567
examples/raw_mesh: now offering a higher level --scene flag
teh-cmc 79559b3
Merge remote-tracking branch 'origin/main' into emilk/split-examples-…
teh-cmc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"crates/*", | ||
"rerun_py", | ||
"run_wasm", | ||
"examples/api_demo", | ||
"examples/minimal", | ||
"examples/objectron", | ||
"examples/raw_mesh", | ||
] | ||
members = ["crates/*", "examples/rust/*", "rerun_py", "run_wasm"] | ||
|
||
[workspace.package] | ||
authors = ["rerun.io <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1 @@ | ||
# Rerun Examples | ||
The simplest example is [`minimal`](minimal/main.py). You may want to start there! | ||
|
||
## Setup | ||
First install the Rerun Python SDK with `pip install rerun-sdk` (coming soon!) | ||
|
||
<!-- TODO(emilk): remove the coming soon --> | ||
|
||
## Dependencies | ||
Each example comes with its own set of dependencies listed in a `requirements.txt` file. For example, to install dependencies and run the toy `car` example (which doesn't need to download any data) run: | ||
|
||
```sh | ||
pip install -r examples/car/requirements.txt | ||
examples/car/main.py | ||
``` | ||
|
||
You can also install all dependencies needed to run all examples with: | ||
|
||
```sh | ||
pip install -r examples/requirements.txt | ||
``` | ||
|
||
## Running the examples | ||
By default, the examples spawn a Rerun Viewer and stream log data to it. | ||
|
||
You can instead save the log data to an `.rrd` file using `examples/car/main.py --save data.rrd`. You can then open that `.rrd` file with `rerun data.rrd`. | ||
|
||
(`rerun` is an alias for `python -m rerun`). | ||
|
||
NOTE: `.rrd` files do not yet guarantee any backwards or forwards compatibility. One version of Rerun will likely not be able to open an `.rrd` file generated by another Rerun version. | ||
|
||
## Contributions welcome | ||
Feel free to open a PR to add a new example! | ||
|
||
See [`CONTRIBUTING.md`](../CONTRIBUTING.md) for details on how to contribute. | ||
# Official Rerun examples |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,38 @@ | ||||
# Rerun Examples | ||||
The simplest example is [`minimal`](minimal/main.py). You may want to start there! | ||||
|
||||
## Setup | ||||
First install the Rerun Python SDK with `pip install rerun-sdk` (coming soon!) | ||||
|
||||
<!-- TODO(emilk): remove the coming soon --> | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
|
||||
## Dependencies | ||||
Each example comes with its own set of dependencies listed in a `requirements.txt` file. For example, to install dependencies and run the toy `car` example (which doesn't need to download any data) run: | ||||
|
||||
```sh | ||||
pip install -r examples/python/car/requirements.txt | ||||
examples/python/car/main.py | ||||
``` | ||||
|
||||
You can also install all dependencies needed to run all examples with: | ||||
|
||||
```sh | ||||
pip install -r examples/python/requirements.txt | ||||
``` | ||||
|
||||
## Running the examples | ||||
By default, the examples spawn a Rerun Viewer and stream log data to it. | ||||
|
||||
You can instead save the log data to an `.rrd` file using `examples/python/car/main.py --save data.rrd`. You can then open that `.rrd` file with `rerun data.rrd`. | ||||
|
||||
(`rerun` is an alias for `python -m rerun`). | ||||
|
||||
NOTE: `.rrd` files do not yet guarantee any backwards or forwards compatibility. One version of Rerun will likely not be able to open an `.rrd` file generated by another Rerun version. | ||||
|
||||
## Datasets | ||||
Some examples will download a small datasets before they run. They will do so the first time you run the example. The datasets will be added to a subdir called `dataset`, which is in the repo-wide `.gitignore`. | ||||
|
||||
## Contributions welcome | ||||
Feel free to open a PR to add a new example! | ||||
|
||||
See [`CONTRIBUTING.md`](../CONTRIBUTING.md) for details on how to contribute. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
Run: | ||
``` sh | ||
python3 examples/dicom/main.py | ||
python3 examples/python/dicom/main.py | ||
``` | ||
""" | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
Run: | ||
```sh | ||
./examples/plot/main.py | ||
./examples/python/plot/main.py | ||
``` | ||
""" | ||
|
||
|
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well pre-emptively get this right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: if rerun-sdk is already published, why can't I find it on https://pypi.org/project/rerun-sdk/ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only been published on
testpypi
, sopip install -i https://test.pypi.org/simple/ rerun-sdk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if
pip install rerun-sdk
doesn't work yet, then let's not write it yet.