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

Support pathlib.Path #930

Open
hainm opened this issue Oct 28, 2020 · 3 comments
Open

Support pathlib.Path #930

hainm opened this issue Oct 28, 2020 · 3 comments

Comments

@hainm
Copy link
Collaborator

hainm commented Oct 28, 2020

nglview.show_file(Path(...))

@DustBytes
Copy link

You can convert the Path() into str as str(Path())

@jaimergp
Copy link
Contributor

Which parts of the API deal with str objects that can be file system paths? show_file, NGLWidget.add_component?

@hainm
Copy link
Collaborator Author

hainm commented Feb 15, 2021

@jaimergp it's from here:

def _load_data(self, obj, **kwargs):

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