interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Time

Open kvlanger opened this issue 9 months ago • 6 comments

#!connect jupyter is taking very long, for me it took 4.5m+. Please can anyone tell me why. ( Polyglot Notebooks .dib )

kvlanger avatar Mar 29 '25 15:03 kvlanger

Can you provide an example of the code you're running? Also, how is Jupyter configured on your machine? For example, do you run it via Conda, Anaconda, or another way?

jonsequitur avatar Mar 31 '25 16:03 jonsequitur

I am also seeing the problem. I've not seen the command complete successfully. The specific code that I am running is:

#!connect jupyter --kernel-name python3 --kernel-spec python3

I have javascript set as the default language for the notebook (because python isn't an option), so its running in a javascript code cell. Maybe I'm doing something wrong?

mattsull-psu avatar Apr 01 '25 16:04 mattsull-psu

The #!connect command isn't specific to any language so it shouldn't matter which language the cell is.

jonsequitur avatar Apr 01 '25 16:04 jonsequitur

@mattsull-psu, I have the same question for you. How is Jupyter installed on your machine? For example, do you run it via Conda, Anaconda, Python virtual environment...?

jonsequitur avatar Apr 01 '25 16:04 jonsequitur

Sorry for the slow reply. I had Jupyter installed as an extension in VS Code. I was using venv for my environment and had installed the kernel via pip.

As it happens, I was able to resolve the issue by editing the kernel.json file. It was created automatically with a full path to the python executable. I replaced that full path with just "python", and that fixed the issue.

mattsull-psu avatar Apr 09 '25 04:04 mattsull-psu

Thanks @mattsull-psu!

@kvlanger, are you still seeing this issue? Can provide more details about your environment?

jonsequitur avatar Apr 09 '25 17:04 jonsequitur