Adding Text on the page

Hi All,

I would like to add text to the Bokeh page. I am currently doing this via text input boxes. Is there something like a title I can place on screen?

Also, can the location of the boxes be justified? Right now all text input boxes are left justified, can I make it center?

The best way I know of doi ng
this at the moment is to make a
custom html template.

            Chec

                  k out:

I wou

···

http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#standalone-html

                    ld then use

manual css tweaks to make changes like cente ring text
inputs.

I am also now working on new layout work that should make
this possible and easy - without custom html and
css - but
it’s a little way off

                            Best,

                              Bird

On 3/4/16 1:20 PM, RedRaven wrote:

Hi All,

    I would like to add text to the Bokeh page. I am currently doing

this via text input boxes. Is there something like a title I can
place on screen?

    Also, can the location of the boxes be justified? Right now all

text input boxes are left justified, can I make it center?

  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/5a6be19a-6b77-4c15-bf8c-67d5c87d6cd0%40continuum.io?utm_medium=email&utm_source=footer)      .

For more options, visit .


Sarah Bird
Developer, Bokeh

    [
      ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
    ](http://continuum.io)

https://groups.google.com/a/continuum.io/d/msgid/bokeh/5a6be19a-6b77-4c15-bf8c-67d5c87d6cd0%40continuum.io
https://groups.google.com/a/continuum.io/d/optout

Thanks Sarah. I will check it out.

One quick followup, if I wanted to change the background color and the style of the plots, does this also fall under the custom HTML page?

···

On Friday, 4 March 2016 16:20:33 UTC-5, RedRaven wrote:

Hi All,

I would like to add text to the Bokeh page. I am currently doing this via text input boxes. Is there something like a title I can place on screen?

Also, can the location of the boxes be justified? Right now all text input boxes are left justified, can I make it center?

I just realized that my previous reply did not sufficiently address my situation.

I am currently running a Bokeh server, so would the standalone html functionality work with the bokeh server?

Also, my previous question, if I wanted to change the background color and the style of the plots, does this also fall under the custom HTML page?

Thanks Sarah!

···

On Monday, 7 March 2016 11:20:01 UTC-5, RedRaven wrote:

Thanks Sarah. I will check it out.

One quick followup, if I wanted to change the background color and the style of the plots, does this also fall under the custom HTML page?

On Friday, 4 March 2016 16:20:33 UTC-5, RedRaven wrote:

Hi All,

I would like to add text to the Bokeh page. I am currently doing this via text input boxes. Is there something like a title I can place on screen?

Also, can the location of the boxes be justified? Right now all text input boxes are left justified, can I make it center?

I’ll start with the easy one first: background_c olor and style of
plots can be done with nor mal
Bokeh configuration e.g.

···

http://bokeh.pydata.org/en/latest/docs/user_guide/styling.html#background

The second bad news with light at the end of the
tunnel:

                                      -

Unfortunately you cannot use a template with bokeh server at the
moment. You will need
to stand up a separate server (flask or
otherwise) and embed your bokeh plots in it.
You can see an example of doing this wi
th Django here:
https://github.com/bokeh/bokeh-demos/tree/master/happiness
That example is
much
complicate d
than you need,
a nd I’m
not sure whether it’ll create more confusion,
but I can 't
think of
another exa mple at the moment. The
Django example shows off
authentication and seperat ing data
b y
user and other things that it
sou nds like you don’t
need.

                                                                          - What

you basically want to do:

                                                                                  --

create a sim ple
flask server that renders
a Jinja template w hich
has all your custom html

                                                                                              -- use

autoload_server from bokeh to
get the bokeh
script tag that your
template will need
()

                                                                          -

Light at the end of the tunn el: we
know this is an un necessary
hurdle for a simple situ ation
like yours
and recently opened a
detailed issue
.
Hopeful
http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#server-data
– render your
template with
the script - the
script will setup the connection
betwe en your
web page
rendered by your
mini flask
server and your
bokeh server.

                                                                                                                - I will

try and work up an
example of
this (but probably
not in the
next cou ple of
days)

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

someone will work on
this soon.

On 3/7/16 8:21 AM, RedRaven wrote:

    I just realized that my previous reply did not

sufficiently address my situation.

    I am currently running a Bokeh server, so would the standalone

html functionality work with the bokeh server?

    Also, my previous question, if I wanted to change the background

color and the style of the plots, does this also fall under the
custom HTML page?

    Thanks Sarah!





    On Monday, 7 March 2016 11:20:01 UTC-5, RedRaven wrote:

Thanks Sarah. I will check it out.

        One quick followup, if I wanted to change the background

color and the style of the plots, does this also fall under
the custom HTML page?

        On Friday, 4 March 2016 16:20:33 UTC-5, RedRaven wrote:

Hi All,

            I would like to add text to the Bokeh page. I am

currently doing this via text input boxes. Is there
something like a title I can place on screen?

            Also, can the location of the boxes be justified? Right

now all text input boxes are left justified, can I make
it center?

  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/13f50339-c8c8-4882-91f1-727489f7b8c0%40continuum.io?utm_medium=email&utm_source=footer)      .

For more options, visit .


Sarah Bird
Developer, Bokeh

    [
      ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
    ](http://continuum.io)

https://groups.google.com/a/continuum.io/d/msgid/bokeh/13f50339-c8c8-4882-91f1-727489f7b8c0%40continuum.io
https://groups.google.com/a/continuum.io/d/optout