Experiment keeps showing "Variable name $_doc_is in use (by psychopy module). Try another name when I click on the keyboard component. I have tried entering different names but nothing works.
Iām not sure, but I have a feeling that variables starting with a _ might be reserved. Have you only tried variables starting with _ (or $_ ?) ?
I donāt think there are any names for modules that start with _ but I will double check
would you also know how to solve:
matplotlib.font_manager:findfont: Font family [āā] not found. Falling back to DejaVu Sans
So It seems like the only way to make it stop is if I use a ā,ā after the allowed keys. I donāt know why but it works.
Ah yes, I know that new bug well.
Allowed keys have to be a list. If you have a single allowed key it gets interpreted as a string, e.g. āspaceā unless you change it to:
- [āspaceā]
- āspaceā,āspaceā OR
- āspaceā,
__doc__
goes deeper than just PsychoPy, itās a reserved keyword for all of Python. Itās the name of the current document youāre working in. Variables beginning with _
usually mean āthis is something relevant to the inner workings of this packageā, variables beginning with __
usually mean āthis is something coming from the inner workings of Python itselfā.
Whatās probably happening is youāve set something to be equal to __doc__
, meaning when the code then says __doc__ = whatever
it tries to set the current document rather than changing the value of your variable, but when itās in a list and the code sets it, it will just replace the cell itās in.