Skip to content
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

Js exception with pandas - df[‘a’] / df.a #124

Open
unhott opened this issue Aug 18, 2022 · 3 comments
Open

Js exception with pandas - df[‘a’] / df.a #124

unhott opened this issue Aug 18, 2022 · 3 comments

Comments

@unhott
Copy link
Contributor

unhott commented Aug 18, 2022

Confirmed the issue on multiple devices/browsers

https://starboard.gg/unhott/Js-exception-pandas-nwAFWup

When trying to index into a dataframe to get a series, js raises this error.

“ TypeError undefined is not an object (evaluating '$.replace')”

@unhott
Copy link
Contributor Author

unhott commented Aug 18, 2022

Actually, the error is slightly different on Firefox 103.0.2

'TypeError $ is undefined'

@twoxfh
Copy link

twoxfh commented Aug 25, 2022

I can confirm the above code works on https://pyodide.org/en/stable/console.html which not only runs code but handles console output which is likely handling the output for df.a.

from pyodide.console import PyodideConsole

It does not appear the Starboard-python handles console output, @gzuidhof may have some thoughts on this.

As a workaround you can convert your output to a string and it will display.

str(df.a)

or

df['a'].to_numpy()

@gzuidhof
Copy link
Owner

This does look like an error yeah, it seems to be related to Starboard trying to display LaTeX output correctly, other than that I don't currently have the time to debug it :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants