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

Syntax Highlighting does not work in JupyterLab #6

Open
DavidHuebner opened this issue Jun 8, 2021 · 1 comment
Open

Syntax Highlighting does not work in JupyterLab #6

DavidHuebner opened this issue Jun 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@DavidHuebner
Copy link
Collaborator

Describe the bug
In Jupyterlab, syntax highlighting does not work at all.

Expected behavior
Syntax highlighting should work.

@DavidHuebner
Copy link
Collaborator Author

This issue seems more severe than initially expected. The problem is that there is no support in JupyterLab for the kernel.jsmechanism that we use to inject the syntax highlighting in the current version of IRuta (0.2.0). Please also see this open issue: jupyterlab/jupyterlab#3010

Hence, we would need to completely rethink our code highlighting. Possible options are

1. Write a JupyterLab Extensions

Advantage: High flexibility - may also be required for the AnnotationViewer (see #7 )
Disadvantages: Severe overhead (in terms of code and installation procedure) & problems with Binder integration

2. Implement our own Language Server for Ruta OR write a CodeMirror mode
Advantage: May also be used in other context (e.g. syntax highlighting in other platforms) and for other use-cases (code completion, help, etc.)
Disadvantage: Complexity?

For now, we should recommend using Jupyter Notebook for IRuta instead of JupyterLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant