title: Embed an interactive Bokeh in django views
body: <p>I want to make interactive plot in django views (or model ?). Let's say I want to use <a href="https://github.com/bokeh/bokeh/blob/master/examples/app/selection_histogram.py" rel="noreferrer">selection_histogram example.</a>
  I think Bokeh fit my needs because, I have matplot/seaborn that I can reuse and I'm not pretty good at javascript. </p>
  
  <p>There was no problem for me to follow this example : <a href="https://stackoverflow.com/questions/29508958/how-to-embed-standalone-bokeh-graphs-into-django-templates/29524050#29524050">how to embed standalone bokeh graphs into django templates</a>. </p>
  
  <p>As I understand, I need to run a bokeh server and <a href="http://bokeh.pydata.org/en/latest/docs/user_guide/server.html#nginx" rel="noreferrer">make some proxy using nginx</a></p>
  
  <p>How can I embed a interactive bokeh plot into a django view ?</p>
  
  <p>I tried this :</p>
  
  <p><strong>Launch bokeh server</strong></p>
  
  <pre><code>bokeh serve --allow-websocket-origin=127.0.0.1:8001 selection_histogram.py
  </code></pre>
  
  <p><strong>Update my view in views.py</strong></p>
  
  <pre><code>def simple_chart(request):
  
      script = autoload_server(model=None,
                               app_path="/selection_histogram",
                               url="http://localhost:5006/")
  
  
      return render(request, "simple_chart.html", {"the_script": script})
  </code></pre>
  
  <p>Now, it is interactive as expected. </p>
  
  <p>Is there a way to pass some arguments to bokeh application ? </p>
  
  <p>Any helps will be appreciated. 
  Regards</p>