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

How to step into the source code like polynomial.py in prml folder when debugging? #41

Closed
Keneyr opened this issue Dec 22, 2023 · 1 comment

Comments

@Keneyr
Copy link

Keneyr commented Dec 22, 2023

I tried to debug ch01_Introduction.ipynb, set a breakpoint at X_train = feature.transform(x_train), then press F11 to enter the souce code function

image

but polynomial.py file show me like that, this polynomial.py file is located at /site-packages/prml-0.0.1-py3.8.egg :

image

I know that .egg file is a zip file for py source code, but is there any way to step into the right-readble source code in my project folder?

Thanks!

@Keneyr
Copy link
Author

Keneyr commented Dec 22, 2023

oh my gosh, i fix it...

Just copy the folder prml in your project ,the path is like PRML\build\lib\prml, to the anaconda libs path like this : anaconda3\envs\PRML\Lib\site-packages is ok, the .egg file is also in this anaconda site-packages path.

By the way, i'm using .py file debugging, not .ipynb, .ipynb is not that handy for me..

@Keneyr Keneyr closed this as completed Dec 22, 2023
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