We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I have a weird behavior when I execute the below code in IPython console (I use IntelliJ interactive console):
from dotmap import DotMap d = DotMap({'a': 3}) d
This returns:
DotMap(a=3, _repr_mimebundle_=DotMap())
And if I test the number of keys:
print(len(d))
I get 2
I cannot reproduce this behavior in regular console, only with IPython
The text was updated successfully, but these errors were encountered:
I also got a similar behavior that includes not only _repr_minmebundle_ but also _ipython_display_ with iPython (version 8.1.0, Python 3.8.10)
_repr_minmebundle_
_ipython_display_
Sorry, something went wrong.
@Kreol64 I found a workaround. Setting _dynamic=False does the trick.
_dynamic=False
from dotmap import DotMap d = DotMap({'a': 3}, _dynamic=False)
No branches or pull requests
Hi,
I have a weird behavior when I execute the below code in IPython console (I use IntelliJ interactive console):
This returns:
DotMap(a=3, _repr_mimebundle_=DotMap())
And if I test the number of keys:
print(len(d))
I get 2
I cannot reproduce this behavior in regular console, only with IPython
The text was updated successfully, but these errors were encountered: