Skip to main content

A brief description of your package

Project description

logo

pop-up-ide

Interactive Python-editor that allows nondestructive examination of host code

Table of Contents

What does pop-up-ide do?

When placed in code, pop-up-ide creates a new virtual environment with a copy of host namespace. Inside the virtual environment host variables and functions can be used in an interactive code execution environment without afftecting state of the original namespace.

Limitations

Currently pop-up-ide lacks capability to copy variables that use C under the hood (such as numpy arrays or pandas dataframes) unless they are wrapped inside Python functions.

def zeros():
    return np.zeros([50,50])

Wrapping variables utilizing C with functions allows them to be used inside pop-up-ide.

Operating system: pop-up-ide can currently used only in linux environments.

Quick-start

Installation

  1. Run pip install pop-up-ide

Getting started

  1. Include from pop_up_ide import ide, scope in your python files imports.

  2. Place ide(scope()) in your code.

Placement is not trivial. Only variables and functions declared before the ide(scope()) -function call will be included in the interactive code execution environment.

variable_1 = 1

def function_1(a):
    return a

ide(scope())

variable_2 = 2

def function_2(a):
    return a

Only variable_1 and function_1 can be found in the pop-up-ide code execution environment in this case.

By inheriting the namespace in a precise code execution state, pop-up-ide can be used like a debugging tool.

  1. Run your code. When Python interpreter comes to line with: ide(scope()), it will launch pop-up-ide.

Note! When pop-up-ide is launched the first time, installation of necessary dependencies takes some time. Launching pop-up-ide to the same environment later is faster.

  1. pop-up-ide creates virtual environment 'pop_up_env' to your directory.

  2. pop-up-ide opens to your local terminal or xterm if you have xterm installed.

  3. Inside pop-up-ide, most of Python functionalities can be used. pop-up-ide's code execution environment is interactive and it attempts to execute once two empty lines have been entered.

xterm_example Using standard Python in pop-up-ide.

Note! Any changes made inside pop-up-ide to variables or functions loaded from host environment will not take place in the host namespace. Any variables or functions created inside pop-up-ide will not be available in the host environment, when pop-up-ide has been closed.

Tip! pop-up-ide launches with PySide2 installed allowing for images and graphs to open in a separate window for easy saving.

  1. Exit pop-up-ide by typing 'exit' or 'exit & delete environment' inside pop-up-ide. After this your host Python interpreter will continue executing the rest of your code.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pop_up_ide-0.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pop_up_ide-0.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file pop_up_ide-0.1.tar.gz.

File metadata

  • Download URL: pop_up_ide-0.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.8 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for pop_up_ide-0.1.tar.gz
Algorithm Hash digest
SHA256 69cd070c886e3df018a76aa896a6f3204db07c1db215c43e219d91564b6897d9
MD5 1681c3696be1d1ec9890dfeae97488ab
BLAKE2b-256 b6d5dd16bae5c0deb977fc84e3d56d261957db5e765dcf644b632a66d853cf37

See more details on using hashes here.

File details

Details for the file pop_up_ide-0.1-py3-none-any.whl.

File metadata

  • Download URL: pop_up_ide-0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.8 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for pop_up_ide-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8139f652afdb5dc8c30c03760e7c706f92c1e47a2a5aecab057e906e822dc2
MD5 44980ce3e6f7271c8a4548d63cfc64bd
BLAKE2b-256 6de9a2f64b97bcb8f784d413ba9584e46c34767e25a0f7a6d9c774d9dec266ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page