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.
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!
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,pyherefails to detect any root indicators.A quick monkey patch might be to add
.configorsample_datatoroot_indicators(which also seem to be present in the Collab working directory), but this is probably not reasonable, since.configfiles might also appear elsewhere.Are there other recommendations on how to use pyhere in (Collab) notebooks? Thanks!