Python

NAME

Samaki::Plugin::Tmux::Python -- Interactive Python in a tmux window

DESCRIPTION

Run an interactive Python interpreter in a persistent tmux window. State persists across cells, and you can see and interact with the window directly in your tmux session (switch with C-b n/p).

Unlike the Repl plugins which use a PTY to capture output, this plugin uses tmux's control mode to stream output from a real tmux window. This allows you to interact with the window directly (useful for debugging or manual intervention).

REQUIREMENTS

Must be run from within a tmux session.

OPTIONS

  • delay -- seconds to wait between sending lines (default: 0.1)

EXAMPLE

-- tmux-python
x = 42
print(f"The answer is {x}")

-- tmux-python
import math
print(math.pi)

App::samaki v0.0.33

Simple Arrangements of Modules with Any Kind of Items

Authors

  • Brian Duggan

License

MIT

Dependencies

LLM::DWIMLog::AsyncTerminal::UI:ver<0.1.13>ColorDuckie:ver<0.0.12>Prettier::TableTime::DurationTerminal::ANSIDuck::CSVColorCodeUnitMarkdown::GrammarTerminal::WCWidthHTTP::TinyTimezone::Simple

Test Dependencies

Provides

  • Samaki
  • Samaki::Cell
  • Samaki::Conf
  • Samaki::Events
  • Samaki::Exporter::HTML
  • Samaki::Importer::Jupyter
  • Samaki::Page
  • Samaki::Plugin
  • Samaki::Plugin::Auto
  • Samaki::Plugin::Bash
  • Samaki::Plugin::Code
  • Samaki::Plugin::Duck
  • Samaki::Plugin::Duckie
  • Samaki::Plugin::File
  • Samaki::Plugin::HTML
  • Samaki::Plugin::LLM
  • Samaki::Plugin::Markdown
  • Samaki::Plugin::Postgres
  • Samaki::Plugin::Process
  • Samaki::Plugin::Raku
  • Samaki::Plugin::Repl
  • Samaki::Plugin::Repl::Python
  • Samaki::Plugin::Repl::R
  • Samaki::Plugin::Repl::Raku
  • Samaki::Plugin::Text
  • Samaki::Plugin::Tmux
  • Samaki::Plugin::Tmux::Bash
  • Samaki::Plugin::Tmux::Python
  • Samaki::Plugin::URL
  • Samaki::Plugins
  • Samaki::Plugout
  • Samaki::Plugout::CSVGeo
  • Samaki::Plugout::ChartJS
  • Samaki::Plugout::Common
  • Samaki::Plugout::D3
  • Samaki::Plugout::DataTable
  • Samaki::Plugout::DeckGLBin
  • Samaki::Plugout::Duckview
  • Samaki::Plugout::Geojson
  • Samaki::Plugout::HTML
  • Samaki::Plugout::JSON
  • Samaki::Plugout::Plain
  • Samaki::Plugout::Raw
  • Samaki::Plugout::TJLess
  • Samaki::Plugouts
  • Samaki::Utils
  • Samaki::Watcher
  • sam

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.