kylebarron / stata_kernel

A Jupyter kernel for Stata. Works with Windows, macOS, and Linux.
https://kylebarron.dev/stata_kernel/
GNU General Public License v3.0
262 stars 55 forks source link

Highlighting in jupyterlab not working anymore #436

Open ozak opened 3 months ago

ozak commented 3 months ago

The kernel used to have syntax highlighting, which was installed with

conda install -c conda-forge nodejs -y
jupyter labextension install jupyterlab-stata-highlight

which is not supported anymore by jupyter. Will this be updated? Actually, is this project still being maintained? I see there have been no updates in 2 years.

mcaceresb commented 3 months ago

@ozak That's my bad; I haven't given it any attention in some time. What's your Stata versoin?

ozak commented 3 months ago

I am using Stata 18. But I think the issue is the change of "architecture" in jupyter-lab>=4.0 and notebook>=7.0.

ozak commented 3 months ago

The extension keeps asking to be built,

image

But when I try to build it, I get the following error message:

Build failed with 500.

        If you are experiencing the build failure after installing an extension (or trying to include previously installed extension after updating JupyterLab) please check the extension repository for new installation instructions as many extensions migrated to the prebuilt extensions system which no longer requires rebuilding JupyterLab (but uses a different installation procedure, typically involving a package manager such as 'pip' or 'conda').

        If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output.
mcaceresb commented 3 months ago

@ozak Is the issue specifically that this works with jupyter-lab<4.0 but not jupyter-lab>=4.0?

ozak commented 3 months ago

I think so. I am unsure which version broke it exactly.

mcaceresb commented 3 months ago

@ozak Ok. I'm trying to test it out but I'm having problems with all the dependencies, given the bulk of the codebase hasn't been updated in a bit. I'll try and get this working with newer versions of all the dependencies soonish.

ozak commented 3 months ago

Great Thanks!

hugetim commented 3 months ago

Related: https://github.com/kylebarron/jupyterlab-stata-highlight/issues/15

Instructions for a workaround meanwhile: https://github.com/hugetim/jupyterlab_stata_highlight2/issues/4#issuecomment-1895226860

ozak commented 2 months ago

Tried it and didn't work in my install.