cannot start bokeh server

Hi

I am trying to take code from the sliders demo and drop it in my app.

When I run the sliders demo for a second time I get

C:\data\python>bokeh serve sliders.py

2016-07-06 19:47:43,303 Starting Bokeh server version 0.12.0

2016-07-06 19:47:43,304 Cannot start Bokeh server, port 5006 is already in use

C:\data\python>

How do I restart the server? I tried ctrl-c, ctrl-z in the command window with no luck.

There are several references to this but I don’t see a solution, sorry if I missed it.

Darren

I am using a command window in spyder to run the example.

win10/python3.5

1 Like

Hi,

You are already running another instance of the bokeh server on the default port 5006 (perhaps in another terminal window?)

There are two options:

* stop the other bokeh server process before running a new one

* run the new instance of the bokeh server on a different port, with the --port option

Note that if you want one server to run multiple apps, this is fine, you can always do:

  bokeh serve foo.py bar.py baz.py

to run as many at once as you like.

Thanks,

Bryan

···

On Jul 6, 2016, at 9:03 PM, Dkon99 <[email protected]> wrote:

Hi

I am trying to take code from the sliders demo and drop it in my app.

When I run the sliders demo for a second time I get

C:\data\python>bokeh serve sliders.py
2016-07-06 19:47:43,303 Starting Bokeh server version 0.12.0
2016-07-06 19:47:43,304 Cannot start Bokeh server, port 5006 is already in use

C:\data\python>

How do I restart the server? I tried ctrl-c, ctrl-z in the command window with no luck.

There are several references to this but I don't see a solution, sorry if I missed it.

Darren

I am using a command window in spyder to run the example.

win10/python3.5

--
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/90508131-122d-4587-a186-a5c7bf6c322a%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

1 Like

Thanks Bryan but…
Still confused. I start the sliders.py using “bokeh serve” command in a command window then open Firefox and pointed it to the server. It works. I close firefox and try starting sliders.py again in the same command window when I get the error message. No other command window is open. Even if I close the command window and try “bokeh server sliders.py” in a new command window I get the error. After starting bokeh server, do I need to type it each time to start the .py? Using a new port every time I run my app seems like a waste of resources.

How do I stop the bokeh server? The only thing I found was ctrl-c, where do I apply it?

···

On Wed, Jul 6, 2016, 8:57 PM Bryan Van de Ven [email protected] wrote:

Hi,

You are already running another instance of the bokeh server on the default port 5006 (perhaps in another terminal window?)

There are two options:

  • stop the other bokeh server process before running a new one

  • run the new instance of the bokeh server on a different port, with the --port option

Note that if you want one server to run multiple apps, this is fine, you can always do:

    bokeh serve foo.py bar.py baz.py

to run as many at once as you like.

Thanks,

Bryan

On Jul 6, 2016, at 9:03 PM, Dkon99 [email protected] wrote:

Hi

I am trying to take code from the sliders demo and drop it in my app.

When I run the sliders demo for a second time I get

C:\data\python>bokeh serve sliders.py

2016-07-06 19:47:43,303 Starting Bokeh server version 0.12.0

2016-07-06 19:47:43,304 Cannot start Bokeh server, port 5006 is already in use

C:\data\python>

How do I restart the server? I tried ctrl-c, ctrl-z in the command window with no luck.

There are several references to this but I don’t see a solution, sorry if I missed it.

Darren

I am using a command window in spyder to run the example.

win10/python3.5

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/90508131-122d-4587-a186-a5c7bf6c322a%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/D22607C1-8326-4DB1-800F-E93348AF6BE0%40continuum.io.

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

Hi,

You would press Ctrl-C in the same command window that you started the Bokeh server. It will display "Interrupted, shutting down" (eventually, it seems to take several seconds on my windows VM) after which you can re-run the same command. However, I also tried closing the original command window and running again in a new one on Windows 8, and this also worked fine.

Maybe there are other ways of shutting down/killing processes in Windows, or situations that can cause processes to linger and not be shutdown like they should be. I have basically zero Windows expertise, so I can't really say, unfortunately, perhaps someone else on the list with more Windows knowledge can chime in.

Thanks,

Bryan

···

On Jul 6, 2016, at 11:21 PM, Darren Kondrat <[email protected]> wrote:

Thanks Bryan but...
Still confused. I start the sliders.py using "bokeh serve" command in a command window then open Firefox and pointed it to the server. It works. I close firefox and try starting sliders.py again in the same command window when I get the error message. No other command window is open. Even if I close the command window and try "bokeh server sliders.py" in a new command window I get the error. After starting bokeh server, do I need to type it each time to start the .py? Using a new port every time I run my app seems like a waste of resources.

How do I stop the bokeh server? The only thing I found was ctrl-c, where do I apply it?

On Wed, Jul 6, 2016, 8:57 PM Bryan Van de Ven <[email protected]> wrote:
Hi,

You are already running another instance of the bokeh server on the default port 5006 (perhaps in another terminal window?)

There are two options:

* stop the other bokeh server process before running a new one

* run the new instance of the bokeh server on a different port, with the --port option

Note that if you want one server to run multiple apps, this is fine, you can always do:

        bokeh serve foo.py bar.py baz.py

to run as many at once as you like.

Thanks,

Bryan

> On Jul 6, 2016, at 9:03 PM, Dkon99 <[email protected]> wrote:
>
> Hi
>
> I am trying to take code from the sliders demo and drop it in my app.
>
> When I run the sliders demo for a second time I get
>
> C:\data\python>bokeh serve sliders.py
> 2016-07-06 19:47:43,303 Starting Bokeh server version 0.12.0
> 2016-07-06 19:47:43,304 Cannot start Bokeh server, port 5006 is already in use
>
> C:\data\python>
>
> How do I restart the server? I tried ctrl-c, ctrl-z in the command window with no luck.
>
>
> There are several references to this but I don't see a solution, sorry if I missed it.
>
> Darren
>
>
> I am using a command window in spyder to run the example.
>
> win10/python3.5
>
>
>
> --
> 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/90508131-122d-4587-a186-a5c7bf6c322a%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/D22607C1-8326-4DB1-800F-E93348AF6BE0%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/CAPTrt5ZXEMM5%3D%2BxM1zsFBYPnaK_XK%2B6O25g2jrJCiAmV96DFZw%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks for your help.

This is what I get in a spyder command window when I press ctrl-c. The ‘’ have a ? with a box around it that didn’t come over in the cut and paste.

C:\data\python>

‘’ is not recognized as an internal or external command,

operable program or batch file.

C:\data\python>

I tried running the sliders.py using “python sliders.py” and from spyder console. Both seem to work but the html isn’t being updated.

My computer was on overnight and the server wasn’t dropped.

···

On Wednesday, July 6, 2016 at 10:43:49 PM UTC-6, Bryan Van de ven wrote:

Hi,

You would press Ctrl-C in the same command window that you started the Bokeh server. It will display “Interrupted, shutting down” (eventually, it seems to take several seconds on my windows VM) after which you can re-run the same command. However, I also tried closing the original command window and running again in a new one on Windows 8, and this also worked fine.

Maybe there are other ways of shutting down/killing processes in Windows, or situations that can cause processes to linger and not be shutdown like they should be. I have basically zero Windows expertise, so I can’t really say, unfortunately, perhaps someone else on the list with more Windows knowledge can chime in.

Thanks,

Bryan

On Jul 6, 2016, at 11:21 PM, Darren Kondrat [email protected] wrote:

Thanks Bryan but…

Still confused. I start the sliders.py using “bokeh serve” command in a command window then open Firefox and pointed it to the server. It works. I close firefox and try starting sliders.py again in the same command window when I get the error message. No other command window is open. Even if I close the command window and try “bokeh server sliders.py” in a new command window I get the error. After starting bokeh server, do I need to type it each time to start the .py? Using a new port every time I run my app seems like a waste of resources.

How do I stop the bokeh server? The only thing I found was ctrl-c, where do I apply it?

On Wed, Jul 6, 2016, 8:57 PM Bryan Van de Ven [email protected] wrote:

Hi,

You are already running another instance of the bokeh server on the default port 5006 (perhaps in another terminal window?)

There are two options:

  • stop the other bokeh server process before running a new one
  • run the new instance of the bokeh server on a different port, with the --port option

Note that if you want one server to run multiple apps, this is fine, you can always do:

    bokeh serve foo.py bar.py baz.py

to run as many at once as you like.

Thanks,

Bryan

On Jul 6, 2016, at 9:03 PM, Dkon99 [email protected] wrote:

Hi

I am trying to take code from the sliders demo and drop it in my app.

When I run the sliders demo for a second time I get

C:\data\python>bokeh serve sliders.py

2016-07-06 19:47:43,303 Starting Bokeh server version 0.12.0

2016-07-06 19:47:43,304 Cannot start Bokeh server, port 5006 is already in use

C:\data\python>

How do I restart the server? I tried ctrl-c, ctrl-z in the command window with no luck.

There are several references to this but I don’t see a solution, sorry if I missed it.

Darren

I am using a command window in spyder to run the example.

win10/python3.5

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/90508131-122d-4587-a186-a5c7bf6c322a%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/D22607C1-8326-4DB1-800F-E93348AF6BE0%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/CAPTrt5ZXEMM5%3D%2BxM1zsFBYPnaK_XK%2B6O25g2jrJCiAmV96DFZw%40mail.gmail.com.

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

I'm sorry, I don't know anything about the Spyder console. It sounds like Spyder is keeping the server process running. Maybe the Spyder mailing list or issue tracker would be able to provide mode information about shutting down processes properly within Spyder?

Bryan m

···

On Jul 7, 2016, at 10:27 AM, Dkon99 <[email protected]> wrote:

Thanks for your help.

This is what I get in a spyder command window when I press ctrl-c. The '' have a ? with a box around it that didn't come over in the cut and paste.

C:\data\python>
' ' is not recognized as an internal or external command,
operable program or batch file.

C:\data\python>

I tried running the sliders.py using "python sliders.py" and from spyder console. Both seem to work but the html isn't being updated.

My computer was on overnight and the server wasn't dropped.

On Wednesday, July 6, 2016 at 10:43:49 PM UTC-6, Bryan Van de ven wrote:
Hi,

You would press Ctrl-C in the same command window that you started the Bokeh server. It will display "Interrupted, shutting down" (eventually, it seems to take several seconds on my windows VM) after which you can re-run the same command. However, I also tried closing the original command window and running again in a new one on Windows 8, and this also worked fine.

Maybe there are other ways of shutting down/killing processes in Windows, or situations that can cause processes to linger and not be shutdown like they should be. I have basically zero Windows expertise, so I can't really say, unfortunately, perhaps someone else on the list with more Windows knowledge can chime in.

Thanks,

Bryan

> On Jul 6, 2016, at 11:21 PM, Darren Kondrat <[email protected]> wrote:
>
> Thanks Bryan but...
> Still confused. I start the sliders.py using "bokeh serve" command in a command window then open Firefox and pointed it to the server. It works. I close firefox and try starting sliders.py again in the same command window when I get the error message. No other command window is open. Even if I close the command window and try "bokeh server sliders.py" in a new command window I get the error. After starting bokeh server, do I need to type it each time to start the .py? Using a new port every time I run my app seems like a waste of resources.
>
> How do I stop the bokeh server? The only thing I found was ctrl-c, where do I apply it?
>
>
>
>
> On Wed, Jul 6, 2016, 8:57 PM Bryan Van de Ven <[email protected]> wrote:
> Hi,
>
> You are already running another instance of the bokeh server on the default port 5006 (perhaps in another terminal window?)
>
> There are two options:
>
> * stop the other bokeh server process before running a new one
>
> * run the new instance of the bokeh server on a different port, with the --port option
>
> Note that if you want one server to run multiple apps, this is fine, you can always do:
>
> bokeh serve foo.py bar.py baz.py
>
> to run as many at once as you like.
>
> Thanks,
>
> Bryan
>
>
> > On Jul 6, 2016, at 9:03 PM, Dkon99 <[email protected]> wrote:
> >
> > Hi
> >
> > I am trying to take code from the sliders demo and drop it in my app.
> >
> > When I run the sliders demo for a second time I get
> >
> > C:\data\python>bokeh serve sliders.py
> > 2016-07-06 19:47:43,303 Starting Bokeh server version 0.12.0
> > 2016-07-06 19:47:43,304 Cannot start Bokeh server, port 5006 is already in use
> >
> > C:\data\python>
> >
> > How do I restart the server? I tried ctrl-c, ctrl-z in the command window with no luck.
> >
> >
> > There are several references to this but I don't see a solution, sorry if I missed it.
> >
> > Darren
> >
> >
> > I am using a command window in spyder to run the example.
> >
> > win10/python3.5
> >
> >
> >
> > --
> > 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+un...@continuum.io.
> > To post to this group, send email to bo...@continuum.io.
> > To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/90508131-122d-4587-a186-a5c7bf6c322a%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 bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/D22607C1-8326-4DB1-800F-E93348AF6BE0%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 bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAPTrt5ZXEMM5%3D%2BxM1zsFBYPnaK_XK%2B6O25g2jrJCiAmV96DFZw%40mail.gmail.com\.
> 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/2d9c178c-8d4a-4221-9577-a97c739a76e1%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.