Skip to content

Commit a385f71

Browse files
authored
Merge pull request #12 from marimo-team/aka/readme-minor-edits
minor edits
2 parents 00c7c70 + 8b1eae9 commit a385f71

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@ the "open in marimo" badge in its README.
2020

2121
## Adding new examples
2222

23-
We welcome community contributions of examples.
23+
We welcome community contributions of examples!
2424

25-
Open a pull request to contribute a new example. Ideally, examples are easy
26-
for others to adapt to their own data and models. Here's a contribution checklist:
25+
Open a pull request to contribute a new example. Ideally, examples are easy for
26+
others to adapt to their own data and models. Here's a contribution checklist:
2727

2828
- [ ] Place the example in its own folder
2929
- [ ] Include package dependencies in notebook files [using
3030
`--sandbox`](https://docs.marimo.io/guides/package_reproducibility/)
3131
- [ ] Include a short README.md describing your example and how to run it.
3232
- [ ] Include instructions on how to adapt the notebook to custom data and models
3333

34-
If you aren't comfortable adding a new example, you can also request new examples by filing an issue.
34+
If you aren't comfortable adding a new example, you can also request new
35+
examples by filing an issue.
3536

3637
## Community
3738

explore_high_dimensional_data/explore_high_dimensional_data.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def load_data():
4848

4949
data, labels = sklearn.datasets.load_digits(return_X_y=True)
5050
return data, labels
51+
5152
return (load_data,)
5253

5354

@@ -65,9 +66,10 @@ def embed_data(data):
6566
import sklearn
6667
import sklearn.decomposition
6768

68-
return sklearn.decomposition.PCA(
69-
n_components=2, whiten=True
70-
).fit_transform(data)
69+
return sklearn.decomposition.PCA(n_components=2, whiten=True).fit_transform(
70+
data
71+
)
72+
7173
return (embed_data,)
7274

7375

@@ -97,6 +99,7 @@ def scatter_data(df: pl.DataFrame) -> alt.Chart:
9799
)
98100
.properties(width=500, height=500)
99101
)
102+
100103
return (scatter_data,)
101104

102105

@@ -129,6 +132,7 @@ def show_selection(data, rows, max_rows=10):
129132
axes.set_xticks([])
130133
plt.tight_layout()
131134
return fig
135+
132136
return (show_selection,)
133137

134138

@@ -160,6 +164,7 @@ def _(load_data):
160164
@app.cell
161165
def _():
162166
import polars as pl
167+
163168
return (pl,)
164169

165170

@@ -218,6 +223,7 @@ def _(chart, data, mo, show_selection, table):
218223
@app.cell
219224
def _():
220225
import marimo as mo
226+
221227
return (mo,)
222228

223229

0 commit comments

Comments
 (0)