We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
panel 0.10.0, bokeh 2.2.2, Python 3.7 OS: Manjaro 20.1.2
When using panel.pipeline.Pipeline sometimes the panel() method of the first stage of pipeline is called twice.
panel.pipeline.Pipeline
panel()
import param import panel as pn class A(param.Parameterized): def panel(self): print("A.panel()") return self class B(param.Parameterized): def panel(self): print("B.panel()") return self pipeline = pn.pipeline.Pipeline( stages=[('A', A()), ('B', B())] ) pn.Column(pipeline.buttons, pipeline.stage).servable()
After running this with panel serve bug_pipeline.py and opening in the browser, you see in console that 'A.panel()' was printed twice:
panel serve bug_pipeline.py
'A.panel()'
On the other hand if you declare stages differently, then the panel() method is run only once, as expected:
pipeline = pn.pipeline.Pipeline() pipeline.add_stage('A', A()) pipeline.add_stage('B', B()) pn.Column(pipeline.buttons, pipeline.stage).servable()
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
ALL software version info
panel 0.10.0, bokeh 2.2.2, Python 3.7
OS: Manjaro 20.1.2
Description of expected behavior and the observed behavior
When using
panel.pipeline.Pipeline
sometimes thepanel()
method of the first stage of pipeline is called twice.Complete, minimal, self-contained example code that reproduces the issue
After running this with

panel serve bug_pipeline.py
and opening in the browser, you see in console that'A.panel()'
was printed twice:On the other hand if you declare stages differently, then the
panel()
method is run only once, as expected:The text was updated successfully, but these errors were encountered: