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

A timeout might probably happen at Kernel startup (and restart) #42

Open
davidcl opened this issue Feb 16, 2024 · 1 comment
Open

A timeout might probably happen at Kernel startup (and restart) #42

davidcl opened this issue Feb 16, 2024 · 1 comment

Comments

@davidcl
Copy link
Contributor

davidcl commented Feb 16, 2024

The kernel startup looks rather slow and some stderr messages are printed. This seems to indicate that a timeout is happening behind the scene which slow down the kernel starting phase.

The stderr is:

[MetaKernelApp] ERROR | Can't load 'E:\nosave\scoop\apps\miniconda3\current\lib\site-packages\metakernel\magics\shell_magic.py': error: <pexpect.popen_spawn.PopenSpawn object at 0x0000016F4AC820E0>
searcher: searcher_re:
    0: re.compile('>')
<pexpect.popen_spawn.PopenSpawn object at 0x0000016F4AC820E0>
searcher: searcher_re:
    0: re.compile('>')
@davidcl
Copy link
Contributor Author

davidcl commented Dec 4, 2024

image

It looks related to the ShellMagic powershell implementation. On replwrap.py setprompt(..), there is an expect on prompt_regex before enforcing the specific prompt. When the user modified its prompt on the $PROFILE, the expect timeout !

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

1 participant