We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pathlib.Path
Thanks @matthewfeickert for calling attention to this!
This should function the same as if we passed str(path) to GISDocument, but we get an error
str(path)
GISDocument
from jupytergis_lab import GISDocument from pathlib import Path path = Path.cwd() / "france_hiking.jGIS" path.is_file() doc = GISDocument(path) doc
File /home/shared/jupytergis/.venv/lib/python3.10/site-packages/jupyter_client/jsonutil.py:192, in json_clean(obj) 189 return obj.strftime(ISO8601) 191 # we don't understand it, it's probably an unserializable object --> 192 raise ValueError("Can't clean for JSON: %r" % obj) ValueError: Can't clean for JSON: PosixPath('[/home/shared/jupytergis/examples/france_hiking.jGIS](http://localhost:8888/lab/tree/RTC%3Aexamples/examples/france_hiking.jGIS)')
The text was updated successfully, but these errors were encountered:
Thanks for opening up an Issue on this! It would be a small, but nice, quality of life use improvement. :)
Sorry, something went wrong.
gjmooney
No branches or pull requests
Thanks @matthewfeickert for calling attention to this!
This should function the same as if we passed
str(path)
toGISDocument
, but we get an errorThe text was updated successfully, but these errors were encountered: