Skip to content

Commit 414c33b

Browse files
merge changes
2 parents 4308c82 + 6026517 commit 414c33b

File tree

6 files changed

+204
-467
lines changed

6 files changed

+204
-467
lines changed

.github/workflows/publish-marimo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
uv run marimo export html llm/pydantic_ai_examples.py -o build/llm/pydantic_ai_examples.html --sandbox
3434
uv run marimo export html data_science_tools/pandas_api_on_spark.py -o build/data_science_tools/pandas_api_on_spark.html --sandbox
3535
uv run marimo export html data_science_tools/pyspark_parametrize.py -o build/data_science_tools/pyspark_parametrize.html --sandbox
36+
uv run marimo export html data_science_tools/narwhals.py -o build/data_science_tools/narwhals.html --sandbox
3637
- name: Upload Pages Artifact
3738
uses: actions/upload-pages-artifact@v3
3839
with:

.pre-commit-config.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
repos:
2-
- repo: https://github.com/ambv/black
3-
rev: 20.8b1
4-
hooks:
5-
- id: black
6-
additional_dependencies: ['click==8.0.4']
7-
- repo: https://github.com/pycqa/flake8
8-
rev: 3.8.4
9-
hooks:
10-
- id: flake8
11-
- repo: https://github.com/timothycrosley/isort
12-
rev: 5.12.0
13-
hooks:
14-
- id: isort
2+
- repo: https://github.com/charliermarsh/ruff-pre-commit
3+
rev: v0.11.6
4+
hooks:
5+
- id: ruff
6+
args: [--fix]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Collection of useful data science topics along with articles and videos.
99
## The Data Scientist's Toolkit: 100+ Essential Tools for Modern Analytics
1010

1111
To receive a condensed overview of these tools and additional resources, sign up for [CodeCut's free PDF guide](https://codecut.ai/data-scientist-toolkit/?utm_source=github&utm_medium=data_science_repo&utm_campaign=free_pdf). This comprehensive 264-page document covers over 100 essential data science tools, providing you with a valuable reference for your work.
12-
12+
1313
## How to Download the Code in This Repository to Your Local Machine
1414

1515
To download the code in this repo, you can simply use git clone

contribution.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Contribution Guidelines
2+
3+
## Environment Setup
4+
5+
### Install uv
6+
7+
[uv](https://github.com/astral.sh/uv) is a fast Python package installer and resolver.
8+
9+
```bash
10+
# Install uv
11+
curl -LsSf https://astral.sh/uv/install.sh | sh
12+
13+
# Verify installation
14+
uv --version
15+
```
16+
17+
### Install Dependencies
18+
19+
```bash
20+
# Install dependencies from pyproject.toml
21+
uv sync
22+
```
23+
24+
### Install Pre-commit Hooks
25+
26+
We use pre-commit to ensure code quality and consistency.
27+
28+
```bash
29+
# Install pre-commit hooks
30+
uv run pre-commit install
31+
```
32+
33+
## Working with Marimo Notebooks
34+
35+
### Creating a New Notebook
36+
37+
Create a new notebook using marimo:
38+
39+
```bash
40+
uv run marimo edit notebook.py --sandbox
41+
```
42+
43+
### Publishing Notebooks
44+
45+
Add the following workflow to `.github/workflows/publish-marimo.yml`:
46+
47+
```yaml
48+
...
49+
jobs:
50+
publish:
51+
runs-on: ubuntu-latest
52+
steps:
53+
...
54+
- name: Export notebook
55+
run: |
56+
uv run marimo export html notebook.py -o build/notebook.html --sandbox
57+
...
58+
```
59+
60+
## Pull Request Process
61+
62+
1. Fork the repository
63+
2. Create a new branch for your feature
64+
3. Make your changes
65+
4. Submit a pull request with a clear description of changes

requirements.txt

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

0 commit comments

Comments
 (0)