Skip to content

Notebook protocol go-to-definition support#408

Merged
ccordoba12 merged 12 commits into
python-lsp:developfrom
jasongrout:feat-cell-gtd
Aug 22, 2023
Merged

Notebook protocol go-to-definition support#408
ccordoba12 merged 12 commits into
python-lsp:developfrom
jasongrout:feat-cell-gtd

Conversation

@jasongrout

@jasongrout jasongrout commented Jul 28, 2023

Copy link
Copy Markdown
Contributor

This is a work-in-progress PR to add go to definition support on top of the notebook protocol developed in #389 by @tkrabel-db.

Likely each plugin, such as go to definition, will need to be modified to support the notebook syncing messages. We'll try to abstract out general patterns where possible, though.

@jasongrout jasongrout changed the title WIP Notebook protocol go-to-definition support Notebook protocol go-to-definition support Jul 28, 2023
@jasongrout

Copy link
Copy Markdown
Contributor Author

I think this minimally works, and the test passes now.

@jasongrout jasongrout marked this pull request as ready for review July 28, 2023 23:16
@ccordoba12

Copy link
Copy Markdown
Member

Hey @jasongrout, nice to see you here! I took a quick look at PR #389 and it looks quite good, so I'll try to merge it next week.

@jasongrout

jasongrout commented Jul 30, 2023

Copy link
Copy Markdown
Contributor Author

Hey @jasongrout, nice to see you here! I took a quick look at PR #389 and it looks quite good, so I'll try to merge it next week.

Awesome! @tkrabel-db and I are using python-lsp-server at Databricks for LSP support, and we are excited to contribute things like notebook protocol support that would be helpful for the whole community. As you saw on the other ticket, @tkrabel-db is eager to iterate on this repo to help maintain and improve the dev workflow as well.

@ccordoba12

Copy link
Copy Markdown
Member

As you saw on the other ticket, @tkrabel-db is eager to iterate on this repo to help maintain and improve the dev workflow as well.

Great! That would be really helpful because I don't have much time lately to maintain this project.

@jasongrout

Copy link
Copy Markdown
Contributor Author

I rebased this PR on top of the develop branch, now that #389 is merged.

@ccordoba12 ccordoba12 added this to the v1.8.0 milestone Aug 11, 2023
@ccordoba12 ccordoba12 added the enhancement New feature or request label Aug 11, 2023
@ccordoba12

Copy link
Copy Markdown
Member

@jasongrout, this only requires to fix the code style issues reported by our failing workflow. The rest looks good to me.

@jasongrout

Copy link
Copy Markdown
Contributor Author

I pushed some changes that address the pylint errors. The biggest change is factoring out extracting the cell data (pylint was complaining about too many local variables, as a hint that the complexity was too large).

Since the black formatting PR was merged, of course there are conflicts. My hope is that running black on this pr will be enough to resolve those, though.

@jasongrout

Copy link
Copy Markdown
Contributor Author

@ccordoba12, @tkrabel-db - I think this is ready for review again.

@ccordoba12 ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasongrout, please merge again with develop to get the changes done in PR #418 and see if your PR passes with them.

Comment thread test/test_notebook_document.py Outdated
@jasongrout jasongrout requested a review from ccordoba12 August 18, 2023 16:51
@ccordoba12

Copy link
Copy Markdown
Member

@jasongrout, please run black again on test_notebook_document.py to make our style checks pass.

Then I'll merge, unless @tkrabel-db has something else to say.

@jasongrout

Copy link
Copy Markdown
Contributor Author

@jasongrout, please run black again on test_notebook_document.py to make our style checks pass.

Done!

@ccordoba12 ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jasongrout!

@ccordoba12 ccordoba12 merged commit 3f08d8c into python-lsp:develop Aug 22, 2023
@jasongrout

Copy link
Copy Markdown
Contributor Author

@ccordoba12 - we're trying to figure out a plan for deploying the changes in this PR. Do you have a rough idea of a timeline for releasing 1.8.0? If it's going to be a while, would it be possible to do a 1.8.0 prerelease? What can we do to help with the 1.8.0 release?

@ccordoba12

Copy link
Copy Markdown
Member

What can we do to help with the 1.8.0 release?

There are some minor issues that I'd like to address for 1.8.0, so if you could give me a hand with them, I'd really appreciate it. They have to do with preventing simple errors here and there.

@smacke

smacke commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

There are some minor issues that I'd like to address for 1.8.0, so if you could give me a hand with them, I'd really appreciate it.

I actually didn't see this before I started going through, but I think I have PRs open now that should address all of these:

Since the first one requires a change on the json rpc side, it probably needs a version bump in the requirements there as well -- let me know if I can help with that.

@ccordoba12

Copy link
Copy Markdown
Member

Thanks a lot @smacke for your help with this! I'll review your PRs tomorrow.

Since the first one requires a change on the json rpc side, it probably needs a version bump in the requirements there as well -- let me know if I can help with that.

No worries, I'll take care of that when doing the release.

@smacke

smacke commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

Thanks a lot @smacke for your help with this! I'll review your PRs tomorrow.

No problem and awesome! Thanks a bunch Carlos.

@ccordoba12

Copy link
Copy Markdown
Member

I just released 1.8.0. Thanks guys for all your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants