'save' and 'theme' not working together (0.12.4)

Hi,

I am trying to set a theme using a theme.yaml file but when I use ‘save’ instead of ‘show’ the theme is not applied.

This problem can be recreated using the example here if you change show to save (need to import save as well):

http://bokeh.pydata.org/en/latest/docs/gallery/color_sliders.html

Is there a way around this or is this a bug in the current version of bokeh (0.12.4)?

Thanks in advance,

Mike

I believe this should be fixed in master by https://github.com/bokeh/bokeh/pull/5932 Can you try a recent dev build (or build from source) to confirm?

Bryan

···

On Mar 10, 2017, at 09:52, [email protected] wrote:

Hi,

I am trying to set a theme using a theme.yaml file but when I use 'save' instead of 'show' the theme is not applied.

This problem can be recreated using the example here if you change show to save (need to import save as well):

http://bokeh.pydata.org/en/latest/docs/gallery/color_sliders.html

Is there a way around this or is this a bug in the current version of bokeh (0.12.4)?

Thanks in advance,

Mike

--
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/02d083b1-d17e-4da8-9499-75e33d67704a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi, thanks for the speedy response.

Unfortunately with the latest dev release (0.12.5dev14) installed via:

conda install -c bokeh/channel/dev bokeh

I’m getting a (possibly related?) error when running the same example:

File “bokeh-yaml.py”, line 135, in

save(layout)

File “/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py”, line 387, in save

_save_helper(obj, filename, resources, title, validate)

File “/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py”, line 453, in _save_helper

doc.validate()

AttributeError: ‘NoneType’ object has no attribute ‘validate’

Thanks,

Mike

···

On Friday, March 10, 2017 at 4:07:07 PM UTC, Bryan Van de ven wrote:

I believe this should be fixed in master by https://github.com/bokeh/bokeh/pull/5932 Can you try a recent dev build (or build from source) to confirm?

Bryan

On Mar 10, 2017, at 09:52, [email protected] wrote:

Hi,

I am trying to set a theme using a theme.yaml file but when I use ‘save’ instead of ‘show’ the theme is not applied.

This problem can be recreated using the example here if you change show to save (need to import save as well):

http://bokeh.pydata.org/en/latest/docs/gallery/color_sliders.html

Is there a way around this or is this a bug in the current version of bokeh (0.12.4)?

Thanks in advance,

Mike


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/02d083b1-d17e-4da8-9499-75e33d67704a%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Please file a GH issue with this information:

  https://github.com/bokeh/bokeh/issues

Thanks,

Bryan

···

On Mar 10, 2017, at 11:33, [email protected] wrote:

Hi, thanks for the speedy response.

Unfortunately with the latest dev release (0.12.5dev14) installed via:

conda install -c bokeh/channel/dev bokeh

I'm getting a (possibly related?) error when running the same example:

  File "bokeh-yaml.py", line 135, in <module>
    save(layout)
  File "/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py", line 387, in save
    _save_helper(obj, filename, resources, title, validate)
  File "/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py", line 453, in _save_helper
    doc.validate()
AttributeError: 'NoneType' object has no attribute 'validate'

Thanks,

Mike

On Friday, March 10, 2017 at 4:07:07 PM UTC, Bryan Van de ven wrote:
I believe this should be fixed in master by https://github.com/bokeh/bokeh/pull/5932 Can you try a recent dev build (or build from source) to confirm?

Bryan

> On Mar 10, 2017, at 09:52, [email protected] wrote:
>
> Hi,
>
> I am trying to set a theme using a theme.yaml file but when I use 'save' instead of 'show' the theme is not applied.
>
> This problem can be recreated using the example here if you change show to save (need to import save as well):
>
> http://bokeh.pydata.org/en/latest/docs/gallery/color_sliders.html
>
> Is there a way around this or is this a bug in the current version of bokeh (0.12.4)?
>
> Thanks in advance,
>
> Mike
>
> --
> 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/02d083b1-d17e-4da8-9499-75e33d67704a%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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/55015302-da5b-4c08-9300-072aec9554e4%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Actually I think this will happen to be fixed in a currently open PR:

  https://github.com/bokeh/bokeh/pull/5961#discussion_r104807381

Bryan

···

On Mar 10, 2017, at 11:37, Bryan Van de ven <[email protected]> wrote:

Please file a GH issue with this information:

  https://github.com/bokeh/bokeh/issues

Thanks,

Bryan

On Mar 10, 2017, at 11:33, [email protected] wrote:

Hi, thanks for the speedy response.

Unfortunately with the latest dev release (0.12.5dev14) installed via:

conda install -c bokeh/channel/dev bokeh

I'm getting a (possibly related?) error when running the same example:

File "bokeh-yaml.py", line 135, in <module>
   save(layout)
File "/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py", line 387, in save
   _save_helper(obj, filename, resources, title, validate)
File "/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py", line 453, in _save_helper
   doc.validate()
AttributeError: 'NoneType' object has no attribute 'validate'

Thanks,

Mike

On Friday, March 10, 2017 at 4:07:07 PM UTC, Bryan Van de ven wrote:
I believe this should be fixed in master by https://github.com/bokeh/bokeh/pull/5932 Can you try a recent dev build (or build from source) to confirm?

Bryan

On Mar 10, 2017, at 09:52, [email protected] wrote:

Hi,

I am trying to set a theme using a theme.yaml file but when I use 'save' instead of 'show' the theme is not applied.

This problem can be recreated using the example here if you change show to save (need to import save as well):

http://bokeh.pydata.org/en/latest/docs/gallery/color_sliders.html

Is there a way around this or is this a bug in the current version of bokeh (0.12.4)?

Thanks in advance,

Mike

--
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/02d083b1-d17e-4da8-9499-75e33d67704a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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/55015302-da5b-4c08-9300-072aec9554e4%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Apparently not, here is an issue you can follow:

  https://github.com/bokeh/bokeh/issues/5977

Thanks,

Bryan

···

On Mar 10, 2017, at 11:48, Bryan Van de ven <[email protected]> wrote:

Actually I think this will happen to be fixed in a currently open PR:

  https://github.com/bokeh/bokeh/pull/5961#discussion_r104807381

Bryan

On Mar 10, 2017, at 11:37, Bryan Van de ven <[email protected]> wrote:

Please file a GH issue with this information:

  https://github.com/bokeh/bokeh/issues

Thanks,

Bryan

On Mar 10, 2017, at 11:33, [email protected] wrote:

Hi, thanks for the speedy response.

Unfortunately with the latest dev release (0.12.5dev14) installed via:

conda install -c bokeh/channel/dev bokeh

I'm getting a (possibly related?) error when running the same example:

File "bokeh-yaml.py", line 135, in <module>
  save(layout)
File "/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py", line 387, in save
  _save_helper(obj, filename, resources, title, validate)
File "/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py", line 453, in _save_helper
  doc.validate()
AttributeError: 'NoneType' object has no attribute 'validate'

Thanks,

Mike

On Friday, March 10, 2017 at 4:07:07 PM UTC, Bryan Van de ven wrote:
I believe this should be fixed in master by https://github.com/bokeh/bokeh/pull/5932 Can you try a recent dev build (or build from source) to confirm?

Bryan

On Mar 10, 2017, at 09:52, [email protected] wrote:

Hi,

I am trying to set a theme using a theme.yaml file but when I use 'save' instead of 'show' the theme is not applied.

This problem can be recreated using the example here if you change show to save (need to import save as well):

http://bokeh.pydata.org/en/latest/docs/gallery/color_sliders.html

Is there a way around this or is this a bug in the current version of bokeh (0.12.4)?

Thanks in advance,

Mike

--
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/02d083b1-d17e-4da8-9499-75e33d67704a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

--
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/55015302-da5b-4c08-9300-072aec9554e4%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks!

···

On Friday, March 10, 2017 at 6:00:52 PM UTC, Bryan Van de ven wrote:

Apparently not, here is an issue you can follow:

    [https://github.com/bokeh/bokeh/issues/5977](https://github.com/bokeh/bokeh/issues/5977)

Thanks,

Bryan

On Mar 10, 2017, at 11:48, Bryan Van de ven [email protected] wrote:

Actually I think this will happen to be fixed in a currently open PR:

    [https://github.com/bokeh/bokeh/pull/5961#discussion_r104807381](https://github.com/bokeh/bokeh/pull/5961#discussion_r104807381)

Bryan

On Mar 10, 2017, at 11:37, Bryan Van de ven [email protected] wrote:

Please file a GH issue with this information:

    [https://github.com/bokeh/bokeh/issues](https://github.com/bokeh/bokeh/issues)

Thanks,

Bryan

On Mar 10, 2017, at 11:33, [email protected] wrote:

Hi, thanks for the speedy response.

Unfortunately with the latest dev release (0.12.5dev14) installed via:

conda install -c bokeh/channel/dev bokeh

I’m getting a (possibly related?) error when running the same example:

File “bokeh-yaml.py”, line 135, in

save(layout)

File “/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py”, line 387, in save

_save_helper(obj, filename, resources, title, validate)

File “/home/mike/anaconda3/lib/python3.5/site-packages/bokeh/io.py”, line 453, in _save_helper

doc.validate()

AttributeError: ‘NoneType’ object has no attribute ‘validate’

Thanks,

Mike

On Friday, March 10, 2017 at 4:07:07 PM UTC, Bryan Van de ven wrote:

I believe this should be fixed in master by https://github.com/bokeh/bokeh/pull/5932 Can you try a recent dev build (or build from source) to confirm?

Bryan

On Mar 10, 2017, at 09:52, [email protected] wrote:

Hi,

I am trying to set a theme using a theme.yaml file but when I use ‘save’ instead of ‘show’ the theme is not applied.

This problem can be recreated using the example here if you change show to save (need to import save as well):

http://bokeh.pydata.org/en/latest/docs/gallery/color_sliders.html

Is there a way around this or is this a bug in the current version of bokeh (0.12.4)?

Thanks in advance,

Mike


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/02d083b1-d17e-4da8-9499-75e33d67704a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.


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/55015302-da5b-4c08-9300-072aec9554e4%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.