Is it possible to fire up VisiData within Python? #2026
-
Hi, maybe you know me, because I am the old fan of Visidata from almost day zero. How?For example Within jupyter cell, having a function, that when we call it, interactive or passive visidata opens up! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I don't know of a smooth way to do this from a jupyter cell 🤔 . Taking Jupyter out of the equation, you can use a flow like this from Python: import pandas as pd
from visidata import vd
df = ...
vd.view_pandas(df) ...but the few times I've tried it from jupyter it hasn't worked well because visidata wants raw terminal access and jupyter is doing its own thing. One workaround I've only used for example purposes is passing data into a running vd session. I'm assuming that's probably too janky to be a true solution, but maybe still useful in case it triggers any more productive impulses from folks like you who know your way around notebooks. |
Beta Was this translation helpful? Give feedback.
-
one year later and I still could not open visidata within my python apps. |
Beta Was this translation helpful? Give feedback.
Yes, this is the same error @ajkerrigan showed above. Looks like Jupyter doesn't support curses raw() mode (used for TUIs). So it's not possible within Jupyter. Sorry.