{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2653","repository_url":"https://api.github.com/repos/bokeh/bokeh","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2653/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2653/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2653/events","html_url":"https://github.com/bokeh/bokeh/issues/2653","id":98438863,"number":2653,"title":"Should value() accept None","user":{"login":"birdsarah","id":1796208,"avatar_url":"https://avatars.githubusercontent.com/u/1796208?v=3","gravatar_id":"","url":"https://api.github.com/users/birdsarah","html_url":"https://github.com/birdsarah","followers_url":"https://api.github.com/users/birdsarah/followers","following_url":"https://api.github.com/users/birdsarah/following{/other_user}","gists_url":"https://api.github.com/users/birdsarah/gists{/gist_id}","starred_url":"https://api.github.com/users/birdsarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdsarah/subscriptions","organizations_url":"https://api.github.com/users/birdsarah/orgs","repos_url":"https://api.github.com/users/birdsarah/repos","events_url":"https://api.github.com/users/birdsarah/events{/privacy}","received_events_url":"https://api.github.com/users/birdsarah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20discussion","name":"type: discussion","color":"2659A0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T17:42:46Z","updated_at":"2016-02-21T03:52:44Z","closed_at":"2016-02-21T03:52:44Z","body":"The following example fails with a white screen of death and the JS error:\r\n```\r\nJavascript error adding output!\r\nError: spec for property 'line_color' needs one of 'value' or 'field'\r\nSee your browser Javascript console for more details.\r\n````\r\n\r\n````python\r\nimport numpy as np\r\nfrom bokeh.io import output_notebook, show\r\nfrom bokeh.plotting import figure\r\nfrom bokeh.properties import value\r\n\r\noutput_notebook()\r\n\r\ntheta = np.linspace(0, 8*np.pi, 100)[1:]\r\nx = theta*np.cos(theta)\r\ny = theta*np.sin(theta)\r\n\r\ncircleplot = figure()\r\ncircleplot.circle(x=x, y=y, size=20, line_color=value(None))\r\nshow(circleplot)\r\n````\r\n\r\nNormally `line_color=None` is serialized as `'line_color': None` in this case, it serializes as `{'line_color': {'value': None},` \r\n\r\nI think the second is more correct and should work and that line_color=None should always serialize to `{'line_color': {'value': None},` "},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/186735735","html_url":"https://github.com/bokeh/bokeh/issues/2653#issuecomment-186735735","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/2653","id":186735735,"user":{"login":"canavandl","id":2198981,"avatar_url":"https://avatars.githubusercontent.com/u/2198981?v=3","gravatar_id":"","url":"https://api.github.com/users/canavandl","html_url":"https://github.com/canavandl","followers_url":"https://api.github.com/users/canavandl/followers","following_url":"https://api.github.com/users/canavandl/following{/other_user}","gists_url":"https://api.github.com/users/canavandl/gists{/gist_id}","starred_url":"https://api.github.com/users/canavandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canavandl/subscriptions","organizations_url":"https://api.github.com/users/canavandl/orgs","repos_url":"https://api.github.com/users/canavandl/repos","events_url":"https://api.github.com/users/canavandl/events{/privacy}","received_events_url":"https://api.github.com/users/canavandl/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T03:52:44Z","updated_at":"2016-02-21T03:52:44Z","body":"With the properties refactor by @bryevdv this has been resolved.\r\n\r\nline_color=None is serialized to ``'line_color': {'value': None}`` and the plot renders\r\n\r\n<img width=\"625\" alt=\"screen shot 2016-02-20 at 9 50 06 pm\" src=\"https://cloud.githubusercontent.com/assets/2198981/13200751/1a597b8a-d81c-11e5-9051-2b86e3b5ab05.png\">\r\n"}}