-
Notifications
You must be signed in to change notification settings - Fork 840
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I created a simple notebook on molab using two pre-installed libraries (yfinance and seaborn). I downloaded two years worth of data for NVDA and created two simple plots. After shifting to app view > grid and creating a simple "dashboard", I exported the file as a .py.
Running the app locally via uv run marimo run dash-vertical.py I get the error:
--> /Users/xxxxxx/Downloads/dash-vertical.py:75:0
75 | app._unparsable_cell(
76 | r"""
| ^
77 | - interesting that its not much different by day, thought end of the week would be lower.
Will you submit a PR?
- Yes
Environment
Details
molab
Code to reproduce
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "marimo",
# "seaborn==0.13.2",
# "yfinance==0.2.66",
# ]
# ///
import marimo
__generated_with = "0.18.4"
app = marimo.App(
width="medium",
css_file="/usr/local/_marimo/custom.css",
auto_download=["html"],
)
@app.cell
def _():
import marimo as mo
return
@app.cell
def _():
import yfinance as yf
return (yf,)
@app.cell
def _(yf):
nvda = yf.Ticker('NVDA')
return (nvda,)
@app.cell
def _(nvda):
prices = nvda.history(period='2y').reset_index()
return (prices,)
@app.cell
def _(prices):
prices['day'] = prices['Date'].dt.day_name()
prices['month'] = prices['Date'].dt.month_name()
return
@app.cell
def _(prices):
prices
return
@app.cell
def _():
import seaborn as sns
return (sns,)
@app.cell
def _():
# Brocks Dashboard
return
@app.cell
def _(prices, sns):
sns.barplot(data=prices, x="day", y="Volume")
return
app._unparsable_cell(
r"""
- interesting that its not much different by day, thought end of the week would be lower.
""",
column=None, disabled=False, hide_code=True, name="_"
)
@app.cell
def _(prices, sns):
sns.scatterplot(data=prices, x="Low", y="High")
return
@app.cell
def _():
return
if __name__ == "__main__":
app.run()
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working