-
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
Conversation
249385f
to
6e829e4
Compare
This was a lot more work than anticipated 😓 |
I'll review carefully over the WE, I have a lot of examples-related work I want to do anyhow! |
* Split out the `run` parts of the rerun library to its own file * Document that the web feature flag requires running scripts/setup_web.sh * Improve the docs of rerun and re_sdk * Describe more things * Fix warning * More docs, and split out `coordinates` into its own module * nit comment Co-authored-by: Andreas Reich <[email protected]> * Improve docstring * Improve error message * Add some spacing * For instance -> For example --------- Co-authored-by: Andreas Reich <[email protected]>
…o caching (#1187) * Mark git directories as safe for our docker_ci container * New cargo packages means a new cache key * Add CACHE_KEY everywhere and Only update cache from 1 location
* log_image_file: require named arguments * Allow logging the contents of an image file, not by path
* Add --dataset and --resize flags to colmap
* Make 'web' a default feature of the python sdk * Add sanity-checking to crates/re_web_server/build.rs * Allow crates/re_web_server/build.rs to be run from any CWD * Run setup_web.sh on the Python CI * Turn on the web feature on the CI * Only enable the web feature when building pypi package * Improve setup_web.sh * Add winget package manager to setup_web.sh * Print out what is happening * Add shell: bash * Try getting wasm-opt into the windows build * Correct path to exe * run setup_web.sh but allow it to fail --------- Co-authored-by: Jeremy Leibs <[email protected]>
* Update arrow2, arrow2_convert and polars * Patch arrow2-convert again * Add instructions for how to patch crates to Cargo.toml * Use trunk polars in patch
* Turn on python linting of examples * Fix minor lints * Mute lints about bad docstrings * Use list() instead of trivial list comprehension * ignore some lines, fix others * don't use single-letter names * ignore line * `catch:` -> `catch Exception:` * Dict comprehension * format * Docstring improvements * More docstring fixes * Docstring fixes * docstrings done! * Enable and fix more lints * One more * Clean up .flake8 file * Final cleanup of .flake8 * Also lint python scripts under scripts/ * py-format * better dicom explanation Co-authored-by: Andreas Reich <[email protected]> --------- Co-authored-by: Andreas Reich <[email protected]>
Testing checklist on a clean clone / Linux: Python:
Rust:
|
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!) |
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.
First install the Rerun Python SDK with `pip install rerun-sdk` (coming soon!) | |
First install the Rerun Python SDK with `pip install rerun-sdk`. |
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
, so pip 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.
## 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 comment
The reason will be displayed to describe this comment to others. Learn more.
<!-- TODO(emilk): remove the coming soon --> |
Also need to update the links to the examples in |
|
I also re-arranged the objectron python structure so that:
dataset
contains the downloaded data (because that's what we use everywhere else, and it is what is in the global.gitignore
)proto
contains the protobuff stuffdownload_dataset.py
is in the same path asmain.py
TODO
Checklist
CHANGELOG.md
(if this is a big enough change to warrant it)