websockets.exceptions.InvalidURI: http://localhost:2918/copilot isn't a valid URI: scheme isn't ws or wss
.a = []
b = mo.ui.text()
.a
to keep appending b.value
every time I enter new text into b
.mo.state()
.mo.state()
.marimo run --sandbox
and have each app have its own process and port that i have to forward tosrc/my_proj/processors/simple_processor.py notebooks/nb1.py
src/proj
and, from notebook nb1.py
, importfrom processors.simple_processor import SimpleProcessor
marimo run my_notebook.py
the matlib plots are not shown anymore.plotly
and I get the same problem, the plots are only visible when the notebook is in edit mode.altair
plots seem to be fine though ( they are also visible when I switch to view mode).marimo export html-wasm notebook.py -o notebook.wasm.html
uv init
uv venv
source .venv/bin/activate
uv add marimo
(same problem if using ipykernel or jupyterlab)ImportError: Cannot import 'TreeArgumentsWrapper' from 'jedi.inference.arguments' due to circular import.
altair.Chart()
which outputs fine if I render it directly but if I wrap it in a mo.ui.altair_chart()
then the string x-axis values which are versions of the form "x.y.x" are getting evaluated as datetimes so the graph is exactly the same except the x-values are erroneously shown as datetimes. How can I stop this? See https://imgur.com/a/0wFfaYk. First graph is raw altair graph, second is wrapped graph.import marimo as mo import polars as pl main_df = pl.DataFrame( { "player":["John", "Tom", "Jerry", "Bob"], "team":["Spades", "Spades", "Hearts", "Hearts"], } ) def filter_main_df(): exprs = [] if player_select.value: exprs.append((pl.col("player").is_in(player_select.value))) if team_select.value: exprs.append((pl.col("team").is_in(team_select.value))) if len(exprs)>0: return main_df.filter( exprs ) return main_df def on_player_change(_): filtered_df = filter_main_df() options = filtered_df["team"].unique().to_list() print(f"updating team options to: {options}") team_select.options = options player_select = mo.ui.multiselect.from_series(main_df["player"], on_change=on_player_change) team_select = mo.ui.multiselect.from_series(main_df["team"]) mo.vstack([player_select, team_select])
marimo edit --headless --host 0.0.0.0 --port 8883
in my root dir (/~/project), which is where marimo_notebook.py resides.with hydra.initialize(config_path='./config/hydra'): config_1 = hydra.compose(config_name='config')
Traceback: ... self._missing_config_error( File "/opt/conda/lib/python3.10/site-packages/hydra/_internal/config_loader_impl.py", line 102, in _missing_config_error raise MissingConfigException( hydra.errors.MissingConfigException: Primary config directory not found. Check that the config directory '/tmp/marimo_5081/config/hydra' exists and readable
/tmp/marimo_5081/
instead of project
?TypeError This cell raised an exception: TypeError('unhashable type: 'DataFrame' / 'dict')
when using a pandas DataFrame or a dictionary as one of the kwargs.value ofn-a
gets correct nominal type
value ofn-0
gets incorrect temporal type
import hvplot.pandas from bokeh.sampledata.iris import flowers as df df.sample(n=5) df.hvplot.scatter(x='sepal_length', y='sepal_width', by='species', legend='top', height=400, width=400)