Using OpenURL to change current tab

Hey,

Is there a way to use OpenURL from bokeh.models.callbacks to change the address of the current tab instead of opening the URL in a new tab?

Thanks for the help,

Kyle

Doesn't look like it, the current OpenURL implementation is tiny, it basically just calls window.open on the URL:

  https://github.com/bokeh/bokeh/blob/master/bokehjs/src/coffee/models/callbacks/open_url.coffee

So it could be possible (and not take many lines of code) to to add a flag or something to the existing OpenURL model to pass different values for the name parameter as described here:

  http://www.w3schools.com/jsref/met_win_open.asp

If you'd like to open an issue on GH we could discuss it more technically there. I'd be happy to try and help you work up a PR to add this capability.

Another option is to create a new custom user-model. We've never had the need for BokehJS documentation really until now (it was treated as an implementation detail) so I am afraid at the moment there is mostly just examples you can refer to and study or ask questions about. I've posted a few in the mailing list, GH, and StackOverflow in the last few days.

Thanks,

Bryan

···

On Jun 8, 2016, at 10:51 AM, [email protected] wrote:

Hey,

Is there a way to use OpenURL from bokeh.models.callbacks to change the address of the current tab instead of opening the URL in a new tab?

Thanks for the help,

Kyle

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/ba5b34ad-e2b1-4b7e-8783-6b3eb2790b0e%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

I appreciate the links. I’ll write some JS to get it to work.

Thanks,

Kyle