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

Access Query Params #410

Closed
derek-pyne opened this issue Oct 9, 2019 · 3 comments
Closed

Access Query Params #410

derek-pyne opened this issue Oct 9, 2019 · 3 comments

Comments

@derek-pyne
Copy link
Contributor

derek-pyne commented Oct 9, 2019

We've started launching some epic Voila dashboards in our team. One big thing that we would like to do is click a link from one dashboard to open another dashboard with some parameters set. The usually case for this is for drilling down into a more detailed dashboard.

We could do this by adding query params to the link.

This is doable inside Notebooks by accessing the url in a javascript cell like this:

%%javascript
IPython.notebook.kernel.execute("URL = '" + window.location + "'");

However this doesn't work in Jupyter Lab or Voila (jupyterlab/jupyterlab#5888). Assuming Voila is using Jupyter lab behind the scenes?

Any ideas on how to open a link to a Voila dashboard with some data in params?

@jtpio
Copy link
Member

jtpio commented Oct 10, 2019

Thanks @derek-pyne for opening this issue!

Voila doesn't allow arbitrary code execution so this code snippet will not work.

This is slightly related to #105 and #201 too but more towards using them in notebooks.

Linking to the gitter conversation here for reference: https://gitter.im/QuantStack/Lobby?at=5d9f33c4fcf7602cc5657eb2

@timkpaine
Copy link
Member

#218 (comment)

@maartenbreddels
Copy link
Member

Solved in #414

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

No branches or pull requests

4 participants