Package: cpyvke
cpyvkeCurses PYthon Variable and Kernel Explorercpyvke is a variable explorer and a kernel manager written in Python 3 ncurses
for iPython kernels (Python 2.x or 3.x).
cpyvke supports inspection of numpy ndarray among others types, and provides a set of
tools to visualize and plot data.Be aware that cpyvke isstill in development: A lot of bugs are definitely there !Note that this version only works with Python 3.x. The Python 2.7 version is no
longer maintened !cpyvke : the Curses interfaceVariable explorer and kernel manager.Explore variables in IPython kernelsManage IPython kernelskd5 : the daemon to communicate with IPython kernelsCommunication with ipython kernels.Stream variable list each time a change occurs in the kernelListen to request from the clientRequirement256 colors terminal is preferred, but cpyvke also works with 8 colors terminals.python3-tk : install it with your package managerTested withpython 3.5, 3.6 and 3.7DependenciesIpython >= 5.1 (tested with 5.1.0 -- 7.2.0 -- 7.8.0)ipykernel (tested with 4.6.1 -- 5.0.1 -- 5.1.3)jupyter_client >= 4.4 (tested with 4.4.0 -- 5.2.4 -- 5.3.4)psutil (tested with 3.4.2)numpy (tested with 1.13.0)matplotlib (tested with 1.5.1)Installationgit clone https://github.com/ipselium/cpyvke.gitpython3 setup.py installorpip install cpyvkeQuick StartTo start working, just launchcpyvkein a console. It will create a new kernel, start the daemon and launch the client :cpyvkeYou can also launchcpyvke-launch-ipythonto open the current kernel :cpyvke-launch-ipythonYou can now work in this Ipython console and cpyvke will display all changes in the associated kernel :In [1] : run my_program.pyTipsYou can also use :https://github.com/ipselium/vim-cpyvkevim-cpyvkeprovides tools to evaluate blocks of code or full scripts
directly from vim. The duocpyvke/vim-cpyvkepaired with a vim plugin such
aspython-mode(www.github.com/klen/python-mode) can provide a complete
development environment for Python in console.Manualskd5 : The DaemonUsage: kd5 {start|stop|restart|list} [INTEGER]start : start daemon. If no [INTEGER] is provided, a new ipython kernel is created. [INTEGER] is the id of the connection file.stop : stop daemonrestart : restart daemonlist : list available ipython kernelscpyvke : The clientUsage: cpyvke [-h] [-L] [-D] [integer]positional arguments:[integer] : Start up with existing kernel. INTEGER is the id of the connection file.optional arguments:[-h], [--help] : show this help message and exit[-D], [--debug] : Debug mode[-L], [--list] : List all kernelsbindings:h: helpENTER: Validate/Item menuq|ESC: Previous menu/quit's: sort by name/typel: limit display to all variable matching the given keywordu: undo limitk: kernel manager/: Search for variableq: previous menu -- quitr: Refresh explorerc-r: Restart DaemonR: Restart connection to daemonD: Disconnect from daemonC: Connect to daemon↓: Next line↑: Previous line→|↡Next page←|↟Previous pageSetup workspaceYou can directly launchcpyvke. It will create a new kernel, start the daemon and launch the clientcpyvke-launch-ipython automatically launch the current ipython consoleYou can also manually open an existing ipython instance like this :ipython console --existing kernel-xxxxx.jsonwhere xxxxx is the id of the kernelNoteIf you just want to test cpyvke without installing. In cpyvke/ directory :launch kd5 first :python3 -m cpyvke.kd5 startthen launch cpyvke :python3 -m cpyvke.cpyvkeand launch ipython in another console :python3 -m cpyvke.launchConfigurationA configuration filecpyvke.confis created in$HOME/.cpyvke/at first startup. Appearance of the client can be customize (colors, font).ColorsThe available colors are...blackredgreenyellowbluemagentacyanwhiteFontscpyvke can also display powerline fonts. You can find them here :https://github.com/powerline/fonts.Add the following section in$HOME/.cpyvke/cpyvke.conf:[font]powerline-font = TruePython kernel versionThe cpyvke/kd5 duo handles python 2.x or 3.x kernel equally. To setup the Python kernel you'll want to use :[kernel version]version = 3Theversioncan be 2 or 3 for python 2.x kernel or 3.x kernel, respectively.Known Bugscpyvkeis still in developpement and may present unexpected behavior !