Configuring file

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

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, [email protected] 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 [email protected].
To post to this group, send email to [email protected].
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.