/pyclc

Running python shell with default imports. One can use it as calculator.

Primary LanguageShell

Python shell with default imports

Instead of typing multiple lines every time like:

$ python3
>>> import numpy as np
>>> import matplotlib.pyplot as plt

just run one command:

    $ pyclc

Install

Customize imports in pyclc.py, or leave default.
Run:

sudo install.sh

Usage

$ pyclc
>>> np.linspace(0, 1, 11)
array([0. , 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1. ])

Uninstall

sudo uninstall.sh