You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started using Entangled.py, thanks a lot for maintaining it! I have tons of project ideas using it.
While setting it up I had issues with these two types of code samples:
#|file:yoo.pyprint("hey!")
#|file:yoo.py#|id:meprint("hey!")
I checked the code and it looks like the strings produced are considered strings by PyYAML and the attrs variable is assumed to be a list in entangled/hooks/quarto_attributes.py. PyYAML behaves correctly if there is a space after the colon.
I might be wrong because I do not know the code base enough to give suggestions, but just in case it can help: I suggest adding a check on the type of attrs and warning the user that their quarto attributes are malformed if it is not a dict. And maybe replace the last condition if "id" in attrs by if "id" in attrs.keys()
The text was updated successfully, but these errors were encountered:
Hello,
I started using Entangled.py, thanks a lot for maintaining it! I have tons of project ideas using it.
While setting it up I had issues with these two types of code samples:
I checked the code and it looks like the strings produced are considered strings by PyYAML and the
attrs
variable is assumed to be a list inentangled/hooks/quarto_attributes.py
. PyYAML behaves correctly if there is a space after the colon.I might be wrong because I do not know the code base enough to give suggestions, but just in case it can help: I suggest adding a check on the type of
attrs
and warning the user that their quarto attributes are malformed if it is not a dict. And maybe replace the last conditionif "id" in attrs
byif "id" in attrs.keys()
The text was updated successfully, but these errors were encountered: