Modify code for exported Altair vis code to use inspect.getsource
#37
Labels
enhancement
New feature or request
inspect.getsource
#37
Currently, the to_Altair functionality relies on
chart.code
, which is manually created via string concatenation. This approach is hard to maintain across changes. We can rewrite this by leveraging theinspect.getsource
function to obtain the exported code.For example:
The text was updated successfully, but these errors were encountered: