Skip to content

pyhere in Google Collab? #11

@chillerb

Description

@chillerb

Hi! Thanks for pyhere - I like it a lot, especially for getting the project root in Jupyter Notebooks.

Unfortunately, I just noticed that issues might arise, if one of your notebooks is launched interactively in Google Collab - for example, via the UI from a Jupyter Book.

Since the notebook is mounted independently from the main project into /content/ inside the Collab, pyhere fails to detect any root indicators.

Image

A quick monkey patch might be to add .config or sample_data to root_indicators (which also seem to be present in the Collab working directory), but this is probably not reasonable, since .config files might also appear elsewhere.

Are there other recommendations on how to use pyhere in (Collab) notebooks? Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions