Skip to content

Commit

Permalink
adds anr run rerun/examples/minimal #30
Browse files Browse the repository at this point in the history
  • Loading branch information
mxochicale committed Feb 20, 2024
1 parent 58a3725 commit 2780d16
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rerun/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Rerun is an SDK for visualizing multimodal data that changes over time.

## installation
mamba update -n base mamba
mamba env create -f rrVE.yml
mamba activate rrVE



## References
https://www.rerun.io/
Expand Down
15 changes: 15 additions & 0 deletions rerun/examples/minimal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# minimal

## Download scripts
wget https://raw.githubusercontent.com/rerun-io/rerun/main/examples/python/minimal/requirements.txt
wget https://raw.githubusercontent.com/rerun-io/rerun/main/examples/python/minimal/main.py


## Run scripts
mamba activate rrVE
pip install -r requirements.txt
python main.py


## Reference
https://github.com/rerun-io/rerun/tree/main/examples/python/minimal
18 changes: 18 additions & 0 deletions rerun/examples/minimal/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python3
"""Demonstrates the most barebone usage of the Rerun SDK."""
from __future__ import annotations

import sys

import numpy as np
import rerun as rr # pip install rerun-sdk

# sanity-check since all other example scripts take arguments:
assert len(sys.argv) == 1, f"{sys.argv[0]} does not take any arguments"

rr.init("rerun_example_minimal", spawn=True)

positions = np.vstack([xyz.ravel() for xyz in np.mgrid[3 * [slice(-10, 10, 10j)]]]).T
colors = np.vstack([rgb.ravel() for rgb in np.mgrid[3 * [slice(0, 255, 10j)]]]).astype(np.uint8).T

rr.log("my_points", rr.Points3D(positions, colors=colors, radii=0.5))
2 changes: 2 additions & 0 deletions rerun/examples/minimal/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy
rerun-sdk
30 changes: 30 additions & 0 deletions rerun/rrVE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Some useful commands to manage your conda env:
## LIST MAMBA ENVS: mamba list -n *VE # show list of installed packages
## UPDATE MAMBA: mamba update -n base mamba
## INSTALL MAMBA EV: mamba env create -f *VE.yml
## UPDATE MAMBA ENV: mamba env update -f *VE.yml --prune
## ACTIVATE MAMBA ENV: mamba activate *VE
## REMOVE MAMBA ENV: mamba remove -n *VE --all

name: rrVE
channels:
- conda-forge
dependencies:
- python=3.11
- pip
- pip:
- rerun-sdk
#- matplotlib
#- opencv-python
#- scikit-learn
#- notebook
#- pandas
#- seaborn
#- opencv-contrib-python-headless #https://pypi.org/project/opencv-contrib-python-headless/#history
#- araviq6
#- civiq6
#- cv2PySide6
#- qimage2ndarray
#- numpy


0 comments on commit 2780d16

Please sign in to comment.