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

Cannot layout Pipeline #1981

Closed
MarcSkovMadsen opened this issue Feb 16, 2021 · 1 comment · Fixed by #2045
Closed

Cannot layout Pipeline #1981

MarcSkovMadsen opened this issue Feb 16, 2021 · 1 comment · Fixed by #2045
Labels
type: enhancement Minor feature or improvement to an existing feature
Milestone

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Feb 16, 2021

Panel 0.10.3

If I put a Pipeline in a column I see a pn.Param version instead of the pipeline.

image

import webbrowser
import param
import panel as pn

pipeline = pn.pipeline.Pipeline()

class GetPassword(param.Parameterized):
    password = param.String()

    _panel = param.Parameter(precedence=-1)
    _widgets = {
        "password": pn.widgets.PasswordInput
    }

    def __init__(self, **params):
        super().__init__(**params)

        self._panel = pn.Param(
            self, widgets=self._widgets
        )

    @param.output('password', param.String)
    def panel(self):
        return self._panel

get_admin_password_from_pam = GetPassword
pipeline.add_stage("Get Pam Password", get_admin_password_from_pam)
pn.Column(pipeline).servable()
@MarcSkovMadsen MarcSkovMadsen added the TRIAGE Default label for untriaged issues label Feb 16, 2021
@MarcSkovMadsen
Copy link
Collaborator Author

A Workaround is

pn.Column(pipeline.layout).servable().

@philippjfr philippjfr added type: enhancement Minor feature or improvement to an existing feature and removed TRIAGE Default label for untriaged issues labels Feb 16, 2021
@philippjfr philippjfr added this to the v0.11.0 milestone Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants