☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Configuring file

Community Support
Jeffery_wang
Jeffery_wang

Hi Guys,

Is there any methodologies available that can be used to set variables which will be referenced in python script file lately?

For example,

*.config (associated with Bokeh Server)

[section1]

speed = 10 (can be dynamically updated)

volume = 20

[section2]

size = 300

main.py

def exc():

m_speed = speed (from *.config dynamically)

Thanks a lot

⌁   Link to post
Bryan
Bryan

Hi,

This is not really a question pertaining to Bokeh. Bokeh server apps can generally run arbitrary Python code, and there are any number of Python tools available for reading various kinds configuration files (.cfg, .yaml, .json, .xml, etc...) Since the question is about general Python usage, and not specific to Bokeh, you might have better success in choosing the best tool for your situation, or in getting help using a specific tool on more general Python Q&A/help sites.

Thanks,

Bryan

···

On Dec 12, 2018, at 10:40, pmjzapple.wang@gmail.com wrote:

Hi Guys,

Is there any methodologies available that can be used to set variables which will be referenced in python script file lately?

For example,

*.config (associated with Bokeh Server)
[section1]
speed = 10 (can be dynamically updated)
volume = 20
[section2]
size = 300

main.py

def exc():
    m_speed = speed (from *.config dynamically)

Thanks a lot

--
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+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/dca62c0c-3d92-423d-b709-0c194b392a26%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled