-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
RuntimeError: if __name__ == '__main__' #1242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You are missing a In Python 3.13, you can try env var |
I did both and still have some problems. Looks like is python 3.13. Which version should I go back to make sure will work? |
Can you elaborate on the issues you experienced?
|
I have came across the same error on running Multiple Time Frame.ipynb with both backtesting 0.6.2 and 0.6.3. and it runs fine with 0.6.1 I am not sure where should I put the if name == 'main' line to have the error be fixed. Or should I just used [PYTHON_CPU_COUNT=1] env setting to avoid the issue. If I want to really want to use multi threads to speed up the optimisation, any suggestion ? |
Expected behavior
Show my optimization, but does not finish due to this runtime error.
Code sample
Actual behavior
Additional info, steps to reproduce, full crash traceback, screenshots
No response
Software versions
bokeh.__version__
: 3.6.3The text was updated successfully, but these errors were encountered: