-
Notifications
You must be signed in to change notification settings - Fork 137
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
Develop changes #419
Develop changes #419
Conversation
GTrunSec
commented
Jan 24, 2023
- add kernels info into passthru
✅ Deploy Preview for tweag-jupyterwith ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Hey @GTrunSec Thanks for the PR! I like the simplification you made with the start up file. A couple curious questions and one comment about an upcoming PR.
|
The difference is that
It is convenient and important for us to reproduce the path(~/.local/jupyter/kernels*) of the kernels in the overall environment. You know most tools are based on that two values for getting kernel info.(jupyter kernelspec list --json or from $HOME/.local/jupyter kernels directly). |
make sure we can import nixpkgs directrly example = { nixpkgs = import inputs.nixpkgs.path { config = {}; system = "x86_64-linux" }; # or nixpkgs = inputs.nixpks; }
Fixes: #402 |
it allows us to link the kernelPaths, for solving some tools getting the kernelInfo only from ~/.local/jupyter/kernles or another place
allows to spcific a languageServer package
now, we can use the following code to specify a languageServer package or env. config = {
jupyterlab = {
extensions = {
features = ["lsp" "jupytext"];
languageServers = {
python = ps: ps.python-lsp-server;
};
};
jupyterlabEnvArgs.extraPackages = ps: ([] ++ ps.python-lsp-server.passthru.optional-dependencies.all);
};
} |
@jamesdbrock I had a problem with haskell-language-server when I was trying to setup the lsp support.
So, do I need some specifically setting for hls? that would be enabled the completion and code highlight? languageServers = {
python = ps: ps.python-lsp-server;
haskell = nixpkgs.haskellPackages.ghcWithPackages (ghcPkgs:
with ghcPkgs; [
haskell-language-server
hlint
ghcide
]);
}; thanks |
Hi @GTrunSec , nice to hear from you. I love what you're trying to do here. Maybe you're asking my advice because I tried to get jupyter-lsp working with IHaskell once? jupyter-lsp/jupyterlab-lsp#313 I don't have any advice for you here, sorry. But you have my moral support! ❤️ |
e28478f
to
670556f
Compare
@jamesdbrock thanks for your response. I should open an issue on the upstream. |
bdd3326
to
1f1533a
Compare
Hey @GTrunSec Really awesome work here! Thanks for putting in all this effort. I hate to ask but could you split this PR up? It looks like 3 or 4 PRs:
I was working primarily on https://github.com/nickel-lang/nickel-nix/ last week so I wasn't able to review anything |
@thomasjm I see that you have been successfully running hls in codedownio(awesome project). Maybe you could give me some ideas for my current problem with haskell-language-server in jupyterlab-lsp. By the way, if you don't mind, I can attempt codedownio-desktop as an extra option to replace jupyterlab. |
Hi @GTrunSec -- running HLS against Haskell notebooks is quite tricky, because IHaskell accepts top-level statements and stuff that HLS won't parse. I have a solution in progress but it's not quite ready to publish yet. I'm not familiar with As soon as CodeDown Desktop is ready as a Jupyterlab alternative I'll let you know :) |
@thomasjm thanks, I see.
Nice, looking forward to it. I also have an excellent MLOps solution for that. |