Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions #263

Merged
merged 6 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,34 @@ on:
- push

jobs:
marimo:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/marimo@main
#marimo:
# runs-on: "ubuntu-latest"
# steps:
# - uses: cvxgrp/.github/actions/uv/marimo@main

sphinx:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/sphinx@main
#sphinx:
# runs-on: "ubuntu-latest"
# steps:
# - uses: cvxgrp/.github/actions/uv/sphinx@main

pdoc:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/pdoc@main

test:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/coverage@main

jupyter:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/jupyter@main

book:
runs-on: "ubuntu-latest"
needs: [test, sphinx, pdoc, jupyter, marimo]
needs: [test, pdoc, jupyter]

permissions:
contents: write
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/test@main
with:
python-version: ${{ matrix.python-version }}
2 changes: 0 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/coverage@main

- name: Coveralls GitHub Action
Expand All @@ -27,5 +26,4 @@ jobs:
deptry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/deptry@main
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvxgrp/.github/actions/uv/build@main

deploy:
Expand Down
4 changes: 0 additions & 4 deletions book/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ title: cvxmarkowitz
author: Thomas Schmelzer
only_build_toc_files: true

execute:
execute_notebooks: force
timeout: 240

parse:
myst_enable_extensions:
- linkify
Expand Down
4 changes: 1 addition & 3 deletions book/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
format: jb-book
root: docs/index
chapters:
- file: docs/nb
sections:
- glob: docs/notebooks/*
- file: docs/api
- file: docs/reports
- file: docs/marimo
4 changes: 1 addition & 3 deletions book/docs/api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# API

## Sphinx

[API](https://www.cvxgrp.org/cvxmarkowitz/sphinx/)
[API](https://www.cvxgrp.org/cvxmarkowitz/pdoc/)
5 changes: 5 additions & 0 deletions book/docs/marimo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Examples

## Demos
- [1/n portfolio](https://www.cvxgrp.org/cvxmarkowitz/marimo/demo.html)
- [Large matrix](https://www.cvxgrp.org/cvxmarkowitz/marimo/assign.html)
4 changes: 0 additions & 4 deletions book/docs/nb.md

This file was deleted.

123 changes: 0 additions & 123 deletions book/docs/notebooks/assign.ipynb

This file was deleted.

71,717 changes: 0 additions & 71,717 deletions book/docs/notebooks/demo.ipynb

This file was deleted.

57 changes: 57 additions & 0 deletions book/marimo/assign.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import marimo

__generated_with = "0.9.27"
app = marimo.App()


@app.cell
def __(mo):
mo.md(
r"""
# Reset a large matrix
"""
)
return


@app.cell
def __():
import numpy as np

return (np,)


@app.cell
def __(np):
a = np.random.randn(5000, 5000)
_b = np.random.randn(5000, 5000)
return (a,)


@app.cell
def __(a):
_b = 0 * a
return


@app.cell
def __(a, np):
_b = np.zeros_like(a)
return


@app.cell
def __(np):
_b = np.zeros((5000, 5000))
return


@app.cell
def __():
import marimo as mo

return (mo,)


if __name__ == "__main__":
app.run()
File renamed without changes.
File renamed without changes.
Loading
Loading