Open coristig opened 8 years ago
I get a similar error. Running this
from bokeh.charts import Bar, output_file, show
from bokeh.sampledata.autompg import autompg as df
p = Bar(df, 'cyl', values='mpg', title="Total MPG by CYL")
output_file("bar.html")
show(p)
No visible plot output, but I do get this Traceback:
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-11-6812e96db98f> in <module>()
6 output_file("bar.html")
7
----> 8 show(p)
/Users/briandanielak/anaconda/lib/python3.5/site-packages/bokeh/io.py in show(obj, browser, new)
299
300 '''
--> 301 return _show_with_state(obj, _state, browser, new)
302
303 def _show_with_state(obj, state, browser, new):
/Users/briandanielak/anaconda/lib/python3.5/site-packages/bokeh/io.py in _show_with_state(obj, state, browser, new)
313
314 if state.file:
--> 315 _show_file_with_state(obj, state, new, controller)
316
317 return comms_handle
/Users/briandanielak/anaconda/lib/python3.5/site-packages/bokeh/io.py in _show_file_with_state(obj, state, new, controller)
318
319 def _show_file_with_state(obj, state, new, controller):
--> 320 save(obj, state=state)
321 controller.open("file://" + os.path.abspath(state.file['filename']), new=_new_param[new])
322
/Users/briandanielak/anaconda/lib/python3.5/site-packages/bokeh/io.py in save(obj, filename, resources, title, state, validate)
374 filename, resources, title = _get_save_args(state, filename, resources, title)
375
--> 376 _save_helper(obj, filename, resources, title, validate)
377
378 def _get_save_args(state, filename, resources, title):
/Users/briandanielak/anaconda/lib/python3.5/site-packages/bokeh/io.py in _save_helper(obj, filename, resources, title, validate)
415 html = standalone_html_page_for_models(obj, resources, title)
416
--> 417 with io.open(filename, "w", encoding="utf-8") as f:
418 f.write(decode_utf8(html))
419
PermissionError: [Errno 13] Permission denied: 'bar.html'
Python 3.5.1 :: Anaconda 2.4.1 (x86_64)
Rodeo v1.3.0
Bokeh v0.11.1
iPython v4.1.2
ipython-genutils 0.1.0
scipy 0.17.0
So, how did you fix it? I'm running windows 10.
When I run the following script:
from bokeh.plotting import figure, output_file, show plot = figure(width=300, height=300) plot.annulus(x=[1, 2, 3], y=[1, 2, 3], color="#7FC97F", inner_radius=0.2, outer_radius=0.5) show(plot)
I get a traceback ending with PermissionError: [Errno 13] Permission denied: 'lines.html'