A brief description of your package
Project description
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
- Run
pip install pop-up-ide
Getting started
-
Include
from pop_up_ide import ide, scopein your python files imports. -
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.
- 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.
-
pop-up-ide creates virtual environment 'pop_up_env' to your directory.
-
pop-up-ide opens to your local terminal or xterm if you have xterm installed.
-
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.
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.
- 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69cd070c886e3df018a76aa896a6f3204db07c1db215c43e219d91564b6897d9
|
|
| MD5 |
1681c3696be1d1ec9890dfeae97488ab
|
|
| BLAKE2b-256 |
b6d5dd16bae5c0deb977fc84e3d56d261957db5e765dcf644b632a66d853cf37
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad8139f652afdb5dc8c30c03760e7c706f92c1e47a2a5aecab057e906e822dc2
|
|
| MD5 |
44980ce3e6f7271c8a4548d63cfc64bd
|
|
| BLAKE2b-256 |
6de9a2f64b97bcb8f784d413ba9584e46c34767e25a0f7a6d9c774d9dec266ea
|