☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

tornado_embed.py example taking log(0)

Community Support
praburavindran
praburavindran

The tornado_embed.py example does
x = np.linspace(0, 10, 1000)

y = np.log(x)*np.sin(x)

This produces warnings as log(0) is being computed. Would be reasonable to change so that this condition is averted and the RunTime warning is not produced?

Prabu

⌁   Link to post
Bryan
Bryan

Hi,

Certainly, I wrote those examples in a hurry right before the last release. But really, I only intended that to be placeholder code. I'd very much like to change them entirely to something that is

* much more interesting, but
* still reasonably short

If you have any ideas for a more compelling demonstration please share them or just make a PR!

Thanks,

Bryan

···

On Mar 11, 2017, at 09:25, praburavindran@gmail.com wrote:

The tornado_embed.py example does
x = np.linspace(0, 10, 1000)
y = np.log(x)*np.sin(x)

This produces warnings as log(0) is being computed. Would be reasonable to change so that this condition is averted and the RunTime warning is not produced?

Prabu

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/b6664c64-7ebf-49be-a5d7-7d0626f910e3%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled