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

Enable users to easily get running environment: notebook, lab, colab, vscode, server, na #3103

Closed
MarcSkovMadsen opened this issue Jan 15, 2022 · 1 comment
Labels
TRIAGE Default label for untriaged issues

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Jan 15, 2022

Sometimes you need to do different things depending on in which environment you are.

For example right now I am developing a notebook with Sophia for a blog post https://github.com/sophiamyang/hvplot_interactive/blob/main/hvplot_interactive.ipynb.

The app uses Tabulator and the FastListTemplate. I want to give Tabulator the fast theme. But unfortunately this only works on the server. Thus I need to do different things depending on whether I am on server or something else.

image

image

Solution

pn.config.environment

where environment value is one of notebook, lab, colab, vscode, server or na.

Additional Context

@MarcSkovMadsen MarcSkovMadsen added the TRIAGE Default label for untriaged issues label Jan 15, 2022
@MarcSkovMadsen
Copy link
Collaborator Author

Closing as obsolete.

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

No branches or pull requests

1 participant