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

Warn or error for Invalid kernel names #1055

Open
digital-carver opened this issue Sep 23, 2022 · 1 comment
Open

Warn or error for Invalid kernel names #1055

digital-carver opened this issue Sep 23, 2022 · 1 comment

Comments

@digital-carver
Copy link

I created a kernel with parantheses (...) in its name, and it seemed to work fine until I tried to start Jupyter with it.

UserWarning: Invalid kernelspec directory name (Kernel names can only contain ASCII letters and numbers and these separators: - . _ (hyphen, period, and underscore).)

Discourse thread (from someone else) with the same issue

Since Jupyter helpfully lists the characters allowed in the name, it would be better to alert the user with a warning, or better an error, instead of silently doing the wrong thing. The last message in #614 hints at the fact that you can use specname to circumvent this, but the user first has to know that this is an issue, and that this can be a solution. An error message seems a good way to convey this information, and to allow the user to quickly make the correction, rather than create the kernel and find out much later that it has this problem.

@stevengj
Copy link
Member

Yes, seems like a good idea.

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

No branches or pull requests

2 participants