Skip to content
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

Failed to detect nodes in ipython/jupyter since v1.1.0 #58

Closed
pwwang opened this issue Oct 8, 2022 · 2 comments
Closed

Failed to detect nodes in ipython/jupyter since v1.1.0 #58

pwwang opened this issue Oct 8, 2022 · 2 comments

Comments

@pwwang
Copy link
Collaborator

pwwang commented Oct 8, 2022

Python 3.9.5 (default, Jun  4 2021, 12:28:51) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.1.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import sys 
   ...: from executing import Source, __version__ 
   ...:  
   ...:  
   ...: def get_node(): 
   ...:     frame = sys._getframe(1) 
   ...:     return Source.executing(frame).node 
   ...:  
   ...:  
   ...: node = get_node() 
   ...: print(node) 
   ...:
None

In [2]: __version__
Out[2]: '1.1.0'

Used to work with v1.0.0

Python 3.9.5 (default, Jun  4 2021, 12:28:51) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.1.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import sys 
   ...: from executing import Source, __version__ 
   ...:  
   ...:  
   ...: def get_node(): 
   ...:     frame = sys._getframe(1) 
   ...:     return Source.executing(frame).node 
   ...:  
   ...:  
   ...: node = get_node() 
   ...: print(node) 
   ...:
<ast.Call object at 0x7fb7de6748b0>

In [2]: __version__
Out[2]: '1.0.0'
@pwwang
Copy link
Collaborator Author

pwwang commented Oct 8, 2022

Related: pwwang/datar#149

@alexmojaki
Copy link
Owner

Released fix in 1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants