or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

docs

commands.mdextension.mdindex.mdpanel.mdpython-module.md
tile.json

tessl/pypi-jupyterlab-visualpython

GUI-based Python code generator extension for Jupyter Lab, Jupyter Notebook, and Google Colab

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/jupyterlab-visualpython@3.0.x

To install, run

npx @tessl/cli install tessl/pypi-jupyterlab-visualpython@3.0.0

index.mddocs/

Visual Python for JupyterLab

Visual Python is a GUI-based Python code generator extension for JupyterLab that enables users to create Python code through an intuitive visual interface. It provides a comprehensive visual programming environment within JupyterLab, making data science and Python programming accessible to users with minimal coding experience.

Package Information

  • Package Name: jupyterlab-visualpython
  • Package Type: pypi
  • Language: Python/TypeScript
  • Installation: pip install jupyterlab-visualpython
  • JupyterLab Version: 4.x
  • Python Version: 3.8 - 3.11

Core Imports

The package provides both Python module imports and JupyterLab extension functionality:

# Python module import (for extension discovery)
import visualpython
// JupyterLab extension is automatically loaded
// Commands and UI components are registered automatically

Basic Usage

After installation, Visual Python integrates directly into JupyterLab:

# Install the extension
pip install jupyterlab-visualpython

# Start JupyterLab (Visual Python will be available)
jupyter lab

Visual Python provides:

  • GUI-based Python code generation
  • Visual programming interface in JupyterLab sidebar
  • Drag-and-drop code creation
  • Code snippet saving and reuse
  • Integration with Jupyter notebooks

Architecture

Visual Python consists of several key components:

  • Python Module: Provides extension metadata and discovery for JupyterLab
  • JupyterLab Extension: Frontend TypeScript/JavaScript extension for UI integration
  • Visual Panel: Main GUI component for visual programming
  • Command System: Integration with JupyterLab's command palette and shortcuts
  • Configuration Schema: Settings and toolbar integration

Capabilities

Python Module Interface

Core Python module providing JupyterLab extension discovery and version information.

# Module-level functions
def _jupyter_labextension_paths() -> List[Dict[str, str]];

# Module variables
__version__: str

Python Module

JupyterLab Extension

Main extension plugin that integrates Visual Python into JupyterLab interface with panel management and command registration.

// Extension activation
function activate(app: JupyterLab, palette: ICommandPalette): void;

// Global variables set by extension
global.vpBase: string;
global.vpExtType: string;
global.vpLab: JupyterLab;
global.$: jQuery;

JupyterLab Extension

Visual Python Panel

Interactive panel component providing the main Visual Python GUI interface within JupyterLab.

class VpPanel extends Panel {
  constructor(app: JupyterLab);
  onResize(msg: ResizeMessage): void;
  onBeforeShow(): void;
  onAfterHide(): void;
  onAfterAttach(): void;
  onCloseRequest(msg: CloseRequestMessage): void;
}

Visual Python Panel

Commands and Shortcuts

Command system integration providing keyboard shortcuts and menu access to Visual Python functionality.

// Available commands
'jupyterlab-visualpython:toggle': Command;

// Keyboard shortcuts
'Accel Shift V': 'jupyterlab-visualpython:toggle'; // Toggle Visual Python panel

Commands and Shortcuts

Types

# Python types
Dict = dict
List = list
// JupyterLab types
interface JupyterLab extends JupyterFrontEnd {
  shell: ILabShell;
  commands: CommandRegistry;
  version: string;
}

interface ICommandPalette {
  addItem(options: IPaletteItem): IDisposable;
}

interface Panel extends Widget {
  id: string;
  title: Title<Widget>;
  isVisible: boolean;
}

type ResizeMessage = Message;
type CloseRequestMessage = Message;
type Message = any; // Lumino message base type