-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement: add 'Copy image' button (#3006)
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import marimo | ||
|
||
__generated_with = "0.9.27" | ||
app = marimo.App(width="medium") | ||
|
||
|
||
@app.cell | ||
def __(): | ||
import marimo as mo | ||
return (mo,) | ||
|
||
|
||
@app.cell | ||
def __(): | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
x = np.linspace(0, 1, 100) | ||
y = np.sin(x) | ||
|
||
plt.plot(x, y) | ||
plt.title("Sine Wave") | ||
plt.xlabel("x") | ||
plt.ylabel("sin(x)") | ||
|
||
plt.gca() | ||
return np, plt, x, y | ||
|
||
|
||
if __name__ == "__main__": | ||
app.run() |