auto-paste-from-script

Package to execute lines from scripts into Python interpreters


License
MIT
Install
pip install auto-paste-from-script==1.0

Documentation

auto-paste-from-script

Utilities for interactively pasting script code into an interpreter. Currently supports Python, R, Scala.

Python Usage

from auto_paste_from_script import AutoPasteFromScript

myS = AutoPasteFromScript("script.py")

myS(5,10)

R Usage

source("AutoPasteFromScript.R")

myS <- AutoPasteFromScript$new(fileName="this.R")

myS$exec(1,5)

Scala Usage

import auto.paste.from.script.AutoPasteFromScript

// $intp is the current interpreter
val myS = AutoPasteFromScript("filename.scala", $intp)

myS(1,5)