Pustaka Taratsa

Baca teks (EPUB): Bokeh-Server: Plot Line

1 bagian

Teks ini diambil langsung dari berkas EPUB; tata letak dan gambar tidak disertakan. Untuk tampilan lengkap, silakan merujuk pada dokumen asli.

Daftar isi
  1. Bokeh-Server: Plot Line

Bokeh-Server: Plot Line

Sumber: https://onnocenter.or.id/wiki/index.php/Bokeh-Server:_Plot_Line

Buat line.py

from bokeh.plotting import figure, output_server, show

output_server("line", url='http://192.168.0.100:5006') # THIS LINE HAS CHANGED!

p = figure(plot_width=400, plot_height=400)

# add a line renderer
p.line([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], line_width=2) 

show(p)



Jalankan Server

bokeh serve --address=192.168.0.100 --host 192.168.0.100:5006 line.py

Browse ke

http://192.168.0.100:5006/line/