Spaces:
Sleeping
Sleeping
Empty commit
Browse files
notebooks/demo_drug_discovery.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# /// script
|
| 2 |
+
# requires-python = ">=3.11"
|
| 3 |
+
# dependencies = [
|
| 4 |
+
# "marimo>=0.23.3",
|
| 5 |
+
# ]
|
| 6 |
+
# ///
|
| 7 |
+
|
| 8 |
+
import marimo
|
| 9 |
+
|
| 10 |
+
__generated_with = "0.23.16"
|
| 11 |
+
app = marimo.App()
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
@app.cell
|
| 15 |
+
def _():
|
| 16 |
+
import marimo as mo
|
| 17 |
+
url="https://huggingface.co/datasets/dbn4/drug-discovery-demo/resolve/42d94e62750e792836a873a8fe062abd9e3a0923/data/drug_discovery_dummy.csv"
|
| 18 |
+
df=mo.sql(f"SELECT * FROM read_csv('{url}') LIMIT 1000")
|
| 19 |
+
mo.ui.table(df)
|
| 20 |
+
return
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
@app.cell
|
| 24 |
+
def _():
|
| 25 |
+
return
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
if __name__ == "__main__":
|
| 29 |
+
app.run()
|