Skip to content
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

Update the example in configure-viewer-through-code.md to use subclasses of SpaceView #6092

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

m-decoster
Copy link
Contributor

@m-decoster m-decoster commented Apr 24, 2024

What

Whereas the Python API docs say that we should use subclasses of SpaceView instead of SpaceView directly (see here), the blueprint documentation uses SpaceView with a subclass as positional argument to the constructor of the SpaceView.

Not only is this contradictory, the example that is currently in the online docs does not run for me in version 0.15.1, see the error below.

Traceback (most recent call last):
  File "rerun_blueprint_test.py", line 6, in <module>
    rrb.SpaceView(rrb.BarChartView()),
TypeError: SpaceView.__init__() takes 1 positional argument but 2 were given

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

To run all checks from main, comment on the PR with @rerun-bot full-check.

@Wumpf Wumpf added 🪳 bug Something isn't working 📖 documentation Improvements or additions to documentation include in changelog labels Apr 24, 2024
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh thank you so much for not only reporting but also fixing right away <3
this must have been left over from a much older draft of the ui.

@Wumpf Wumpf merged commit 7b5eaaf into rerun-io:main Apr 24, 2024
5 of 7 checks passed
@Wumpf
Copy link
Member

Wumpf commented Apr 24, 2024

cherry-picked it into docs-latest, so should automatically go online soon :)

Wumpf pushed a commit that referenced this pull request Apr 24, 2024
…ses of `SpaceView` (#6092)

### What

Whereas the Python API docs say that we should use subclasses of
`SpaceView` instead of `SpaceView` directly (see
[here](https://ref.rerun.io/docs/python/0.15.1/common/blueprint_apis/#rerun.blueprint.SpaceView)),
the [blueprint
documentation](https://www.rerun.io/docs/howto/configure-viewer-through-code)
uses `SpaceView` with a subclass as positional argument to the
constructor of the `SpaceView`.

Not only is this contradictory, the example that is currently in the
online docs does not run for me in version 0.15.1, see the error below.

```
Traceback (most recent call last):
  File "rerun_blueprint_test.py", line 6, in <module>
    rrb.SpaceView(rrb.BarChartView()),
TypeError: SpaceView.__init__() takes 1 positional argument but 2 were given
```

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [ ] I've included a screenshot or gif (if applicable)
* [ ] I have tested the web demo (if applicable):
* Using examples from latest `main` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6092?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6092?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [ ] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!

- [PR Build Summary](https://build.rerun.io/pr/6092)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

To run all checks from `main`, comment on the PR with `@rerun-bot
full-check`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 📖 documentation Improvements or additions to documentation include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants