Skip to content

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

Closed
@jhgoebbert

Description

@jhgoebbert

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions