ploomber / jupysql-plugin

BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

Update jupyterlab4 #100

Closed brichet closed 10 months ago

brichet commented 11 months ago

Describe your changes

This PR updates the plugins to jupyterlab 4.

It cherry-picked the commits from jupyterlab4 branch, as discussed https://github.com/ploomber/jupysql/issues/930#issuecomment-1868397347.

Issue number

Related to https://github.com/ploomber/jupysql/issues/930

Checklist before requesting a review

edublancas commented 11 months ago

hey @brichet is this ready for review?

neelasha23 commented 11 months ago

The autocomplete results look different:

Previously:

290786170-88ed53e8-5e6e-4dc8-b050-b37598a4b808

As per this PR:

Screenshot 2024-01-03 at 11 24 57 AM

Also, I don't see the SQL Formatting button and highlighting also doesn't seem to be working?

@brichet

brichet commented 11 months ago

Also, I don't see the SQL Formatting button and highlighting also doesn't seem to be working?

Thanks for your feedbacks. Can you check the jupyterlab version please, it worked on my side, but I can't test it again currently.

brichet commented 11 months ago

hey @brichet is this ready for review?

I think so, yes.

neelasha23 commented 11 months ago

Can you check the jupyterlab version please

It's 4.0.10

@brichet

bryannho commented 11 months ago

The autocomplete results look different: Also, I don't see the SQL Formatting button and highlighting also doesn't seem to be working?

@neelasha23 @brichet I'm experiencing the same issue, also on jupyterlab 4.0.10

brichet commented 11 months ago

Let's wait for review, the syntax highlighting doesn't work for me neither anymore. However, formating and completion work on my side with lab 4.0.10.

neelasha23 commented 11 months ago

Let's wait for review, the syntax highlighting doesn't work for me neither anymore. However, formating and completion work on my side with lab 4.0.10.

Please check in a clean environment. We might be missing something! Also, please address the existing review comments @brichet

brichet commented 10 months ago

@neelasha23 everything works fine on my side, in a new environment. Does it still not work on your side?

@bryannho thanks for the first review, I updated the syntax highlighting implementation and the completer tests.

@edublancas wondering whether we should add jupysql and ipywidget as dependencies.

edublancas commented 10 months ago

I just tested this on a clean environment, and it works (I tested syntax highlighting, autocompletion, and formatting). @neelasha23 if you're having issues testing it, run git clean -fdx to clean all JS/TS modules + any other extra files and then install everything.

@brichet no need to add those dependencies, jupysql-plugin is already a dependency in jupysql, and the idea is that people should get the jupysql-plugin via pip install jupysql

@bryannho please resolve any pending observations so we can merge this soon!

edublancas commented 10 months ago

@brichet thanks so much for working on this! I'll make a release today/tomorrow