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

How to make (custom Python) kernels support debugging? #483

Closed
ChanceHarrison opened this issue May 12, 2023 · 2 comments
Closed

How to make (custom Python) kernels support debugging? #483

ChanceHarrison opened this issue May 12, 2023 · 2 comments

Comments

@ChanceHarrison
Copy link

"JupyterLab ships with a Debugger front-end by default." "For the debugger to be enabled and visible, a kernel with support for debugging is required." from JupyterLab docs

When I use the default Python 3 (ipykernel), I can use debugging, but I can't use debugging on any kernel defined in kernels.nix.

For example: in kernels.nix:

{pkgs, ...}: {
  kernel.python.trivial = {
    enable = true;
  };
  /* [...other kernels...] */
}

Results in:
image

My rudimentary understanding is that these kernels are just ipykernel under the hood, so I'm not sure why debugging doesn't work?

Thus, this issue. Any assistance on getting debugging to work on custom kernels would be much appreciated. Let me know if I can provide additional information/context myself. Thanks!

GTrunSec added a commit to GTrunSec/jupyterWith that referenced this issue Nov 4, 2023
@GTrunSec
Copy link
Collaborator

GTrunSec commented Nov 4, 2023

solved by: da28e53

the bugger will be enabled by default.

GTrunSec added a commit to GTrunSec/jupyterWith that referenced this issue Nov 4, 2023
GTrunSec added a commit that referenced this issue Nov 24, 2024
* chore: enable 4 Systems support

* chore: update jupyterlab

* refactor: fix python kernel build

* refactor: move jupyterlabArgs to modules.types.poetry

* refactor: add notebookConfig option for the jupyterlab

* refactor: fix nix-kernel

* chore: update ocaml kernel

* chore: update elm kernel

* chore(python): add example for the native kernel

* chore(fix): typescript kernel with latest nixpkgs

* refactor: use juliaWithPackage

* refactor: add mkPoertyKernel

* fix: use poetry2nix pull 1329

* fix: haskellCompiler use ghc943

* fix: #527 missing logo file

* chore(docs): clean docs deps

* Revert "Remove julia example, since it does not build anymore"

This reverts commit 0c86802.

* Revert "Remove scala example, since it does not build anymore"

This reverts commit daf5e19.

* fix: #524 internal the kernelModuleDir

* chore: update locks and void unused transitive inputs

* feat: enrich julia example

* refactor: apply nixpkgsArg by default

* fix(haskell): enrich extraPackgesTypes by @teto

* chore(templates): add the runtimePackages use case for the #528

* feat(kernelArgs): add extraKernelSpc for extending the spc

solve #483, and enable the debugger by default

* chore: update poetry2nix

* chore: remove nixpkgs-julia(upstream merged)

* fix: add space escape

* add dotnet kernel for C# and F#

* dotnet: add zlib and openssl to runtimeDeps

---------

Co-authored-by: guangtao <[email protected]>
@GTrunSec
Copy link
Collaborator

closes by #524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants