-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support for pyodide #10687
Comments
Thanks for opening an issue, and glad to see there's interest in using Ibis in a WASM runtime. We've also wanted to this to work properly for a while, and up until pyodide 0.27.1 (which was released a couple days ago) using ibis with pyodide required a series of install hacks. With pyodide 0.27.1, these hacks are no longer required, and you can use ibis in pyodide like so:
In fact, we have a jupyterlite runtime on the Ibis website here: https://ibis-project.org/tutorials/browser/repl, where Ibis is imported and then a simple The issue you're encountering seems like an installation problem, rather than any lack of support for running Ibis in pyodide. |
Can you show how you installed ibis in your pyodide instance? |
This is a minimal example using marimo:
import marimo
__generated_with = "0.10.14"
app = marimo.App(width="medium")
@app.cell
def _():
import marimo as mo
return (mo,)
@app.cell
def _():
import ibis
return (ibis,)
@app.cell
def _(ibis):
ibis.duckdb.connect(":memory:")
return
@app.cell
def _():
return
if __name__ == "__main__":
app.run()
stacktrace:
and in the developer console:
|
This points to something wrong with marimo, or the pyodide version that it's using.
Running marimo definitely needs to be using the latest release of pyodide (0.27.1) for installing ibis to work out of the box without modification. What version of pyodide is marimo using? |
The package.json says I have created an issue on the marimo board marimo-team/marimo#3501. |
it was an issue with marimo installing the 'ibis' package by mistake! marimo-team/marimo#3501 (comment) |
Is your feature request related to a problem?
We really want to use marimo WebAssembly notebooks together with ibis.
There exists a closed issue for this feature #6889. It was previously blocked due to missing pyodide support for pyarrow, but that is no longer the case.
When I try creating a marimo wasm notebook this is where it fails now:
with the trace
What is the motivation behind your request?
No response
Describe the solution you'd like
I'm not sure why it fails. I think the all the components for ibis+duckdb should be there?
What version of ibis are you running?
9.5.0
What backend(s) are you using, if any?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: