☰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

Issues running range_tool.py

Community Support
hudsonhauspassive
hudsonhauspassive

Hello Everyone,

I’m having an issue running the standard code available on the Bokeh website for range_tool.py. This is the message I get when I run range_tool,py from my terminal.

HudsonHauss-MacBook-Pro:Desktop HudsonHaus$ python range_plot.py

*** File “range_plot.py”, line 1***

*** {\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf200***

I keep getting this message. I uninstalled bokeh (pip uninstall bokeh) and reinstalled again (pip install bokeh), but that didn’t help.

Can someone please tell me why this is happening and how to fix it?

Thanks,

Sam

⌁   Link to post
Bryan
Bryan

Hi,

Going off this SO answer:

  Error on "{\rtf1\ansi" when compiling C program - Stack Overflow

It would seem that you have saved range_tool.py as an RTF file. Python will not know what to do with that. You should save as ascii, or possibly UTF-8

Thanks,

Bryan

···

On Apr 11, 2019, at 7:05 PM, hudsonhauspassive@gmail.com wrote:

Hello Everyone,

I'm having an issue running the standard code available on the Bokeh website for range_tool.py. This is the message I get when I run range_tool,py from my terminal.

HudsonHauss-MacBook-Pro:Desktop HudsonHaus$ python range_plot.py
  File "range_plot.py", line 1
    {\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf200

I keep getting this message. I uninstalled bokeh (pip uninstall bokeh) and reinstalled again (pip install bokeh), but that didn't help.

Can someone please tell me why this is happening and how to fix it?

Thanks,

Sam

--
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/f38fc608-4c72-4dd7-b601-23bf05ff284f%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