Skip to content

callable arguments fail with TraitError(" .. instance expected a list, not the function") #518

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

Closed
jhgoebbert opened this issue Feb 24, 2025 · 1 comment · Fixed by #519
Closed
Labels

Comments

@jhgoebbert
Copy link

jhgoebbert commented Feb 24, 2025

The pull request #507 has introduced an issue if command is passing a callable function.

[W 2025-02-24 19:28:56.126 ServerApp] jupyter_server_proxy | extension failed loading with message: TraitError("The 'command' trait of a ServerProcess instance expected a list, not the function '_get_cmd'.")

This breaks multiple server proxies as it is not possible anymore to pass a function using command.

Looking at the documentation of jupyter-server-proxy it should be possible to pass a callable function

Here are some examples on how and why for example command is used in server-proxies:

@jhgoebbert jhgoebbert added the bug label Feb 24, 2025
@jhgoebbert jhgoebbert changed the title TraitError("The 'command' trait of a ServerProcess instance expected a list, not the function callable arguments fail with TraitError(" .. instance expected a list, not the function") Feb 25, 2025
@jhgoebbert
Copy link
Author

Thanks @jwindgassen for providing a fix with this PR #519

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

Successfully merging a pull request may close this issue.

1 participant