-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dont use mpl backend when running as a script (#1089)
* fix: dont use mpl backend when running as script * add bugs smoke
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 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
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,21 @@ | ||
# Copyright 2024 Marimo. All rights reserved. | ||
import marimo | ||
|
||
__generated_with = "0.3.10" | ||
app = marimo.App() | ||
|
||
|
||
@app.cell | ||
def __(): | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
plt.plot(np.arange(52)) | ||
|
||
# better to do plt.gca(), but discovered this translating script | ||
plt.show() | ||
return np, plt | ||
|
||
|
||
if __name__ == "__main__": | ||
app.run() |