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

List of pathlib.Path objects fails to render into JavaScript #2237

Closed
agilevic opened this issue Sep 11, 2019 · 2 comments
Closed

List of pathlib.Path objects fails to render into JavaScript #2237

agilevic opened this issue Sep 11, 2019 · 2 comments

Comments

@agilevic
Copy link

Encountered online at alpha.iodide.io

What I Did

This works works as expected.

%%py
from pathlib import Path
p = Path('/')
l = [str(pe) for pe in p.glob('*')]
l

So does this

%%py
Path('/')

But the following fails. The Pyodide console reports an array of 5 elements but when expanded, returns this error:

A value renderer encountered an error.
TypeError: Cannot read property 'childItems' of null

%%py
from pathlib import Path
p = Path('/')
l = list(p.glob('*'))
l

What I Expected

List of PosixPath objects (their repr() specifically).

What Happened

explanation, imgs. etc.

(if applicable) notebook that reproduces bug

link to the notebook that reproduces the bug. the smaller the better. you may wish to use https://definitely-staging.iodide.io/ (our staging environment, deploys from master) for creating/sharing the notebook.

@bcolloran
Copy link
Contributor

this is probably the same underlying issue as #2254

@bcolloran
Copy link
Contributor

superseded by #2254

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

No branches or pull requests

3 participants