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

URL arguments accessible from notebook #7718

Closed
LeeTZ opened this issue Jul 25, 2018 · 1 comment
Closed

URL arguments accessible from notebook #7718

LeeTZ opened this issue Jul 25, 2018 · 1 comment
Assignees

Comments

@LeeTZ
Copy link
Contributor

LeeTZ commented Jul 25, 2018

It would be nice to have something like

beakerx.urlArg("bar")

which would evaluate as the url arguments 'bar' passed to the notebook. (e.g. http://localhost:8888/notebooks/Starthere.ipynb?bar=200&foo=300)

@LeeTZ
Copy link
Contributor Author

LeeTZ commented Jul 25, 2018

We do have a workaround with JS magic to do that:

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

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

2 participants