HelloI would like to use Dash lib in a python chart.I created a python chart containing the example code in https://dash.plotly.com/dash-core-components/inputUnfortunately, Dash is not available... How can I overcome this issue ?
Thanks, I installed dash in some python 3.7 environment using miniconda, and I set the option > General > Python home to "c:\gilles\programs\miniconda3\envs\freecad37\"
ThanksI did another installation of Python, with many difficulties... I have several python packages that I do not know how to choose among them with c:\Windows\py.exeI installed 3.7.9 64 bits version from web installer (to C:\Users\xxx\AppData\Local\Programs\Python\Python37 )Then I installed pip from command line : C:\Users\xxx\AppData\Local\Programs\Python\Python37\python.exe c:\gilles\bin\get-pip.pyThen I installed dash with : run C:\Users\xxx\AppData\Local\Programs\Python\Python37\python.exe -m pip install dashThen I changed the GC Python interpreter in Options > GeneralThe code still does not Work : "import dash" works, but the code ends with error
I run this example with the Python installation, using the command "python c:\gilles\dcc_input_example.py".It works, dash server gives access to the expected web page.
It might be worth adding a note to the wiki that calls made from a Python script must not block (eg. start a server, wait for user input)
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/0e6b9ca7-7ccb-496d-994f-21a985cacaf2n%40googlegroups.com.
Hi Gilles,First i must say i have not updated to the latest GC so not sure if things are the same with python and treading. I'm running on an older build:
When GC points to this installation, the python chart generates the error :
Mark & Ale : indeed, the dash/python script starts a server...My idea is to use dash to implement a user input that represent the name of a segment (combo box selection, or text input) connected to an event which updates the chart of segment's power & duration timeline...
marcen : thank you very much for letting me discover "leaderboard.py" python chart !This is almost everything that I wanted.I've tested it since last monday...