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

panel doesn't recognize an active session #5

Open
pmeier opened this issue Apr 25, 2024 · 1 comment · May be fixed by #6
Open

panel doesn't recognize an active session #5

pmeier opened this issue Apr 25, 2024 · 1 comment · May be fixed by #6

Comments

@pmeier
Copy link
Collaborator

pmeier commented Apr 25, 2024

I've put the following

def callback():
    import panel as pn
    import html

    return pn.pane.HTML(html.escape(str(pn.state.session_info)))

here

return pn.template.MaterialTemplate(main=[slider, out], title="Hello World")

This is the result

Screencast.from.2024-04-25.23-45-37.webm
@pmeier
Copy link
Collaborator Author

pmeier commented Apr 25, 2024

pn.state.curdoc is also empty

Screencast.from.2024-04-25.23-49-52.webm
def callback():
    import panel as pn
    import html

    return pn.pane.HTML(
        "<br>".join(
            html.escape(line)
            for line in [
                f"{pn.state.session_info=}",
                f"{pn.state.curdoc=!r}",
            ]
        )
    )

@philippjfr philippjfr linked a pull request May 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant