question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to implement LSP for a multi-language kernel (SoS)?

See original GitHub issue

Many thanks for your great work on language server support. I have just tried jupyterlab-lsp, which works great for Python and R, but unfortunately does not work for a multi-language kernel SoS that I have developed.

The idea behind of SoS is that it is a superkernel that sits between frontend and other kernels (see this illustration for details). It allows the use of multiple kernels in one notebook (through sos-notebook for classic jupyter and jupyterlab-sos for jupyterlab), and allows data exchange among live kernels.

The reason why jupyterlab-lsp does not work with SoS is simple: it does not know what language SoS is. If we are to solve this problem, there needs to be some way for SoS to notify jupyterlab-lsp the language used for each cell. I can work at both the frontend and backend (e.g. write a language server for SoS), but I am not sure if cell-level language support is at all possible with jupyterlab-lsp. I would appreciate any insight from the developers if and how this can be done. Thanks.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:19 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
BoPengcommented, Sep 23, 2021

Okay, instead of creating sos-language-server, why don’t we just use per-cell language-server as we already do with cell magics for IPython? This should be simple to implement.

That will make things much easier for SoS. SoS currently uses kernel meta data to specify the kernel of each cell, but I am willing to change that to whatever will be used by jupyterlab-lsp.

BTW, congratulations on the merge of https://github.com/jupyter/enhancement-proposals/pull/72 !

1reaction
BoPengcommented, Sep 11, 2020

Yes, this is on my TODO list, even relatively high, but I am swamped with other obligations (covid related projects, not surprisingly) and have not been able to work on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allowing multiple languages in one notebook #2815 - GitHub
"How to implement LSP for a multi-language kernel (SoS)?" https://github.com/krassowski/jupyterlab-lsp/issues/282. Is this fair?:
Read more >
SoS Notebook: one notebook, multiple languages | vatlab
Support for multiple kernels in one notebook: Jupyter supports virtually all scripting languages ever invented but each notebook can only use ...
Read more >
Untitled
Apply warm home discount british gas, Guddalu recipe, Cpt 66984 lt, Samsung e222 ... Adital noticias, Cap gun war, Xenoblade machina weapons, Win...
Read more >
1. Introduction - MDPI
This architecture can use various types of neural networks, ... Multilingual learning can alleviate the problem of insufficient resources by ...
Read more >
observation services sos: Topics by Science.gov
We will demonstrate an implementation of the OGC SOS Interface Standard to ... SoS Notebook: An Interactive Multi-Language Data Analysis Environment.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found