GithubHelp home page GithubHelp logo

Trouble with the examples about bokeh HOT 3 CLOSED

bokeh avatar bokeh commented on May 2, 2024
Trouble with the examples

from bokeh.

Comments (3)

srossross avatar srossross commented on May 2, 2024

Scratch this question. I got a litter further after launching startlocal.py and then a reddis server. but I could not get passed this error

Traceback (most recent call last):
  File "/usr/local/epd-64-722/lib/python2.7/site-packages/gevent/pywsgi.py", line 438, in handle_one_response
    self.run_application()
...
...
  File "/Users/sean/Documents/workspace/Bokeh/bokeh/server/models/convenience.py", line 23, in can_write_from_request
    doc = docs.Doc.load(app.model_redis, docid)
AttributeError: 'NoneType' object has no attribute 'apikey'
<WSGIServer fileno=3 address=0.0.0.0:5006>: Failed to handle request:
  request = GET /bokeh/bb/defaultdoc/PlotContext/ HTTP/1.1 from ('127.0.0.1', 53731)
  application = <flask.app.Flask object at 0x1013a6810>

from bokeh.

hhuuggoo avatar hhuuggoo commented on May 2, 2024

HI - sorry, we moved most of the code from our continuum data explorer into Bokeh but did not have a chance to update the docs. if you look at the new README.md, you'll see updated instructions for executing the examples. Baiscally when you first navigate to http://localhost:5006/bokeh, the server will autocreate some data that you need, so you have to do that before the example code will work

from bokeh.

srossross avatar srossross commented on May 2, 2024

Next error:

Bokeh$ python examples/glyph_example.py 
Traceback (most recent call last):
  File "examples/glyph_example.py", line 3, in <module>
    p = mpl.PlotClient('defaultdoc', 'http://localhost:5006', 'nokey')
  File "/Users/sean/Documents/workspace/Bokeh/bokeh/mpl.py", line 303, in __init__
    self.ic = interactive_contexts[0]
IndexError: list index out of range

from bokeh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.