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

pip prod(deps): bump marimo from 0.11.9 to 0.11.10 #3977

Merged
merged 3 commits into from
Feb 27, 2025
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
2 changes: 1 addition & 1 deletion docs/marimo/builders.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import marimo

__generated_with = "0.10.17"
__generated_with = "0.11.10"
app = marimo.App()


Expand Down
10 changes: 2 additions & 8 deletions docs/marimo/defining_dialects.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import marimo

__generated_with = "0.11.2"
__generated_with = "0.11.10"
app = marimo.App(width="medium")


Expand Down Expand Up @@ -1065,13 +1065,7 @@ def print_ir_with_pipeline(expr: Expr):


@app.cell
def _(
GreedyRewritePatternApplier,
Operation,
PatternRewriteWalker,
cse,
dce,
):
def _(GreedyRewritePatternApplier, Operation, PatternRewriteWalker, cse, dce):
# Optimize the `complex` and `arith` dialects
def optimize(op: Operation):
# Hint: Add rewrite patterns in this list
Expand Down
5 changes: 3 additions & 2 deletions docs/marimo/ir_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import marimo

__generated_with = "0.11.0"
__generated_with = "0.11.10"
app = marimo.App()


Expand All @@ -20,7 +20,7 @@ def _():
from sympy import S, symbols, Expr, Add, Mul, Sum, Integer, Float, E, I, re, im, Abs, Pow, Rational, Function, UnevaluatedExpr
from sympy.core.symbol import Symbol

from xdsl.ir import Operation, SSAValue, Region, Block, ParametrizedAttribute
from xdsl.ir import Attribute, Operation, SSAValue, Region, Block, ParametrizedAttribute
from xdsl.pattern_rewriter import PatternRewriter, RewritePattern, op_type_rewrite_pattern, PatternRewriteWalker, GreedyRewritePatternApplier
from xdsl.transforms.dead_code_elimination import region_dce
from xdsl.traits import Pure
Expand All @@ -36,6 +36,7 @@ def _():
Add,
AddfOp,
AddiOp,
Attribute,
Block,
Builder,
CmpfOp,
Expand Down
6 changes: 3 additions & 3 deletions docs/marimo/linalg_snitch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import marimo

__generated_with = "0.11.2"
app = marimo.App(width="medium", auto_download=["ipynb"])
__generated_with = "0.11.10"
app = marimo.App(width="medium")


@app.cell(hide_code=True)
Expand Down Expand Up @@ -59,11 +59,11 @@ def _():
Attribute,
Block,
CanonicalizePass,
Context,
ConvertRiscvScfToRiscvCfPass,
ConvertSnitchStreamToSnitch,
ImplicitBuilder,
LowerSnitchPass,
Context,
MLIROptPass,
MemRefType,
ModuleOp,
Expand Down
10 changes: 5 additions & 5 deletions docs/marimo/mlir_ir.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import marimo

__generated_with = "0.11.5"
__generated_with = "0.11.10"
app = marimo.App(width="medium")


Expand Down Expand Up @@ -614,8 +614,8 @@ def _(mo):


@app.cell(hide_code=True)
def _(ModuleOp, Printer, StringIO):
def print_generic(module: ModuleOp) -> str:
def _(Printer, StringIO, builtin):
def print_generic(module: builtin.ModuleOp) -> str:
io = StringIO()
Printer(io, print_generic_format=True).print(module)
return io.getvalue()
Expand Down Expand Up @@ -663,8 +663,8 @@ def _(ctx, triangle_text):


@app.cell(hide_code=True)
def _(Any, ModuleOp):
def run_func(module: ModuleOp, name: str, args: tuple[Any, ...]):
def _(Any, builtin):
def run_func(module: builtin.ModuleOp, name: str, args: tuple[Any, ...]):
from xdsl.interpreter import Interpreter
from xdsl.interpreters import scf, arith, func

Expand Down
14 changes: 8 additions & 6 deletions docs/marimo/pattern_rewrites.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import marimo

__generated_with = "0.10.17"
__generated_with = "0.11.10"
app = marimo.App()


Expand All @@ -24,6 +24,9 @@ def _():
from xdsl.dialects.arith import Arith
from xdsl.dialects.func import Func

from xdsl.ir import Operation

from xdsl.rewriter import Rewriter
from xdsl.pattern_rewriter import (
PatternRewriter,
RewritePattern,
Expand All @@ -33,22 +36,23 @@ def _():
from xdsl.dialects.arith import AddiOp, ConstantOp, MuliOp
from xdsl.dialects.builtin import ModuleOp
from xdsl.dialects.func import FuncOp

return (
AddiOp,
Arith,
Builtin,
ConstantOp,
Context,
Func,
FuncOp,
GreedyRewritePatternApplier,
Context,
ModuleOp,
MuliOp,
Operation,
Parser,
PatternRewriteWalker,
PatternRewriter,
RewritePattern,
Rewriter,
mo,
xmo,
)
Expand Down Expand Up @@ -184,7 +188,6 @@ def match_and_rewrite(self, op: Operation, rewriter: Rewriter):
# last operation added, so here the `arith.addi`
add = AddiOp(x, x)
rewriter.replace_matched_op([add])

return AddZeroPattern, MulTwoPattern


Expand Down Expand Up @@ -218,12 +221,11 @@ def apply_all_rewrites(module: ModuleOp, rewrites: list[Operation]):
merged_pattern = GreedyRewritePatternApplier(AddZeroPattern(), MulTwoPattern())
walker = PatternRewriteWalker(merged_pattern)
walker.rewrite_module(module)

return (apply_all_rewrites,)


@app.cell(hide_code=True)
def _(Arith, Builtin, Func, Context):
def _(Arith, Builtin, Context, Func):
ctx = Context()
ctx.load_dialect(Builtin)
ctx.load_dialect(Arith)
Expand Down
5 changes: 3 additions & 2 deletions docs/marimo/rewrite_exercises.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import marimo

__generated_with = "0.11.2"
__generated_with = "0.11.10"
app = marimo.App(width="medium")


Expand Down Expand Up @@ -35,7 +35,7 @@ def _():
)
from sympy.core.symbol import Symbol

from xdsl.ir import Operation, SSAValue, Region, Block, ParametrizedAttribute
from xdsl.ir import Attribute, Operation, SSAValue, Region, Block, ParametrizedAttribute
from xdsl.pattern_rewriter import (
PatternRewriter,
RewritePattern,
Expand Down Expand Up @@ -80,6 +80,7 @@ def _():
Add,
AddfOp,
AddiOp,
Attribute,
Block,
Builder,
ConstantOp,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dev = [
"nbval<0.12",
"filecheck==1.0.1",
"lit<19.0.0",
"marimo==0.11.9",
"marimo==0.11.10",
"pre-commit==4.1.0",
"ruff==0.9.7",
"nbconvert>=7.7.2,<8.0.0",
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading