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

Is there a way to make "Go To Definition" skip the .py and go straight to the ipynb? #23

Open
Taytay opened this issue Aug 3, 2023 · 1 comment

Comments

@Taytay
Copy link
Contributor

Taytay commented Aug 3, 2023

Thanks again for this extension!

Probably the biggest issue in my workflow with nbdev (not this extension, but nbdev) is that CMD+clicking on a variable (Go to Definition in vscode), takes me to the .py file instead of taking me to the .ipynb notebook. I will often go there, make edits, and only later realize I was editing the wrong thing. It bites me multiple times a day.

Is it possible to make this extension create a new command that runs "go to definition" and then immediately runs "nbdev: navigate"?

If so, it wouldn't be perfect, since it wouldn't take me to the perfect spot in the notebook cell, but it would be closer.

@mauroibz
Copy link

mauroibz commented Dec 6, 2024

I agree with this feedback. Now that our project has grown large, I find myself making small changes over the .py since it's faster, and then having to copy those changes back into the notebook, which became annoying and against the spirit of nbdev. Having easier access to the real source code would make this easier to avoid.

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

2 participants