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
Support for inline values was added for notebooks last iteration, using the setting notebook.inlineValues. When enabled, after a cell is executed, inline values will be displayed after the line, according to either any registered InlineValueProvider or the default fallback.
The fallback has now been improved to only show the last occurrences of a value, in order to reduce visual clutter and incorrect values. Additionally, variables within local functions will not be shown, as their value can't be obtained from the kernel following a cell's execution. This tpi is to test the fallback logic.
note: copilot edits support for notebooks has just been added, and we are looking for as much selfhosting as possible. Throughout this and other TPI's the notebook team would appreciate if you generated edits + notebooks as much as possible, before using pre made notebooks you already have. There are some rough edges, so don't feel the need to get stuck on this part.
Steps to Test:
Part 0:
Change the setting notebook.inlineValues explicitly to on. Setting this to auto will only run when a language provider for inline values is registered (ie pylance)
Ensure you have disabled the pylance extension, as they have a more intelligent provider that will always take priority with the setting in either enabled state.
Part 1:
Execute several cells with varying levels of variable reuse and scopes. Include classes, local functions, etc. Look for the following:
Ensure that there should only be inline values shown for the last occurrence of that variable.
Inline values should not be shown in local scopes, only variables at the global level will be caught in the kernel and therefore shown to the user.
As an example, see the following cell and the current vs old behavior.
dataframes may render with broken LF characeters (\n) and render with an excessive amount of whitespace (though the hover - another tpi - should show cleaner info now!)
Thanks for testing!
The text was updated successfully, but these errors were encountered:
Refs: #238912
Complexity: 3
author: @Yoyokrazy
Create Issue
Summary
Support for inline values was added for notebooks last iteration, using the setting
notebook.inlineValues
. When enabled, after a cell is executed, inline values will be displayed after the line, according to either any registeredInlineValueProvider
or the default fallback.The fallback has now been improved to only show the last occurrences of a value, in order to reduce visual clutter and incorrect values. Additionally, variables within local functions will not be shown, as their value can't be obtained from the kernel following a cell's execution. This tpi is to test the fallback logic.
note: copilot edits support for notebooks has just been added, and we are looking for as much selfhosting as possible. Throughout this and other TPI's the notebook team would appreciate if you generated edits + notebooks as much as possible, before using pre made notebooks you already have. There are some rough edges, so don't feel the need to get stuck on this part.
Steps to Test:
Part 0:
notebook.inlineValues
explicitly toon
. Setting this toauto
will only run when a language provider for inline values is registered (ie pylance)Part 1:
As an example, see the following cell and the current vs old behavior.
current (improved) inline values:

old ("dumb") regex matching:

cell content
Known Issues
Thanks for testing!
The text was updated successfully, but these errors were encountered: