-
Notifications
You must be signed in to change notification settings - Fork 831
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
On
import matplotlib.pyplot as plt
import numpy as np
plt.hist(np.random.rand(1000), bins=100)marimo iterates over the bar container to produce many duplicate plots:
Expected type nd.array, nd.array, barcontainer: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hist.html
Outputting the bar container by itself works as expected:
but wrapping it in an iterable produces bad news:
Environment
head, see: https://marimo.app/l/uudxmj
Code to reproduce
import marimo
__generated_with = "0.9.10-dev8"
app = marimo.App()
@app.cell
def __():
import matplotlib.pyplot as plt
import numpy as np
A, B, C = plt.hist(np.random.rand(1000), bins=100)
return A, B, C, np, plt
@app.cell
def __(C):
[C]
return
@app.cell
def __(C):
C
return
if __name__ == "__main__":
app.run()hbeukers
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working


