Skip to content

Commit 9c7e1f1

Browse files
committed
refresh distribution notebook
1 parent 93df82b commit 9c7e1f1

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

notebooks/marimo/admin/version_comparison.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

notebooks/marimo/lifecycle/distribution/bytes_socrata_versions.py

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,49 @@
11
import marimo
22

3-
__generated_with = "0.18.3"
3+
__generated_with = "0.19.7"
44
app = marimo.App(width="full")
55

6+
with app.setup:
7+
import marimo as mo
8+
9+
from dcpy.lifecycle.scripts import version_compare
10+
611

712
@app.cell(hide_code=True)
8-
def _(mo):
13+
def _():
914
mo.md(r"""
1015
# Socrata <> Bytes version comparison tracker
11-
12-
FYI, this might take a minute or two to run.
1316
""")
1417
return
1518

1619

17-
@app.cell
20+
@app.cell(hide_code=True)
1821
def _():
19-
from dcpy.lifecycle.scripts import version_compare
20-
21-
versions = version_compare.run()
22-
return (versions,)
22+
mo.md(r"""
23+
## Helpful links
24+
- Github action to distribute from Bytes to Open Data: https://github.com/NYCPlanning/data-engineering/actions/workflows/distribute_socrata_from_bytes.yml
25+
- Open Data page to sign in and publish revisions: https://opendata.cityofnewyork.us/
26+
- Product Metadata repo: https://github.com/NYCPlanning/product-metadata
27+
""")
28+
return
2329

2430

2531
@app.cell
2632
def _(versions):
27-
versions
33+
mo.ui.table(versions.reset_index(), page_size=25, selection=None)
2834
return
2935

3036

31-
@app.cell
37+
@app.cell(hide_code=True)
3238
def _():
33-
import marimo as mo
39+
with mo.status.spinner(title="Fetching versions from Bytes and Open Data ..."):
40+
versions = version_compare.run()
41+
return (versions,)
42+
3443

35-
return (mo,)
44+
@app.cell
45+
def _():
46+
return
3647

3748

3849
if __name__ == "__main__":

0 commit comments

Comments
 (0)