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

Paths are relative to the root of the repository - any way to change this? #5

Open
koldLight opened this issue Aug 12, 2021 · 0 comments

Comments

@koldLight
Copy link

Hi, I've just discovered this cool extension thanks to @dynamicwebpaige tweet https://twitter.com/DynamicWebPaige/status/1425502379777019909

I have a public python course developed with jupyter notebooks. I was interested in make it working via github.dev and tried it with the pyolite extension.

It works amazingly well, except for the paths.

E.g. in https://github.dev/koldLight/curso-python-analisis-datos/blob/master/notebooks/02_pandas.ipynb if I try to run the first cell:

import pandas as pd

alquiler = pd.read_csv('dat/alquiler-madrid-distritos.csv', index_col=False)
alquiler.head()

It fails. It seems it's taking as base path the root of the git repository (although in a jupyter notebook, the base path is its location). If I change the path to notebooks/dat/alquiler-madrid-distritos.csv it starts working.

So, my question is... is there any way to set the base path for the extension to run? Or to be always relative to the opened notebook?

Thanks!

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

1 participant