-
Notifications
You must be signed in to change notification settings - Fork 66
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
Improvements to DocTAPE #617
base: main
Are you sure you want to change the base?
Conversation
Added support for objects like the Aircraft and Mission hierarchies to get_all_keys, get_value, and glue_keys. Fixed a bug where setting display=False for glue_variable would display <IPython.core.display.Markdown object> instead of nothing Added support for including parentheses in the arguments for get_variable_name
@@ -89,6 +89,7 @@ def get_previous_line(n=1) -> str: | |||
def get_variable_name(*variables) -> str: | |||
""" | |||
returns the name of the variable passed to the function as a string | |||
# NOTE: You cannot call this function multiple times on one line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In python 3.11 inspect adds positions
as an attribute to FrameInfo
that will allow for this
capturing the output of glue without running RichOutput(**kargs).display() prevents myst from finding the glued variable
Desired features:
|
Could you elaborate on that?
do you mean a pandas dataframe? or are you asking for a feature that will automatically format a numpy array into a table? |
Yes, a pandas table. I have an example here: |
Summary
Added support for objects like the Aircraft and Mission hierarchies
to get_all_keys, get_value, and glue_keys.
Fixed a bug where setting display=False for glue_variable would display
<IPython.core.display.Markdown object> instead of nothing
Added support for including parentheses in the arguments for get_variable_name
Related Issues
Backwards incompatibilities
None
New Dependencies
None