When using Jupyter code cells in VSCode (described here, using # %%
) how does one force all output in a cell to be printed? I was doing that using for Jupyter notebooks.
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
Is there something similar here? For example in a cell try typing and running
pd.DataFrame({"a":[1]})
pd.DataFrame({"b":[2]})
It will only print the second dataframe. One can wrap print() around each of them and both are printed but then styling is lost (df.style.set_properties...
).