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

Failed to run healthcheck for neopyter plugin. Exception: lua/neopyter./health.lua:32: attempt to index field 'jupyterlab' (a nil value)) #17

Open
karawitan opened this issue Dec 5, 2024 · 3 comments

Comments

@karawitan
Copy link

Hello,

is there someone able to help on this one ?

when typing "checkhealth" inside nvim, I get this from the neopyter plugin, do not know how to go on further:

Failed to run healthcheck for neopyter plugin. Exception: lua/neopyter./health.lua:32: attempt to index field 'jupyterlab' (a nil value)
@AbaoFromCUG
Copy link
Collaborator

Do you setup the neopyter?
e.g

require("neopyter").setup({
    ...
})

@karawitan
Copy link
Author

Do you setup the neopyter? e.g

require("neopyter").setup({
    ...
})

hmm not sure where I should put this ?

@AbaoFromCUG
Copy link
Collaborator

AbaoFromCUG commented Jan 15, 2025

If you use lazy.nvim, you should install neopyter with

{
    "SUSTech-data/neopyter",
    ---@type neopyter.Option
    opts = {
        remote_address = "127.0.0.1:9001",
        auto_attach = true,
    },
    ft = { "python" },
    cmd = "Neopyter",
}

If you use pckr.nvim, you should add

{
    "SUSTech-data/neopyter",
    config = function ()
        ---@type neopyter.Option
        require("neopyter").setup({
            remote_address = "127.0.0.1:9001",
            auto_attach = true,
        })
    end
}

If you manual install plugin, you should call it in your init.lua

require("neopyter").setup({
    ...
})

Neoptyter follows the same install convention as other plugins.

But you can provide more context for me to assist you.

@AbaoFromCUG AbaoFromCUG reopened this Jan 15, 2025
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