All Projects → AaronC81 → ipython-auto-import

AaronC81 / ipython-auto-import

Licence: MIT license
📥 Automatically import a Python library in IPython when you forget to import it

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to ipython-auto-import

Pudb
Full-screen console debugger for Python
Stars: ✭ 2,267 (+4021.82%)
Mutual labels:  ipython
Jupyterhub Deploy Teaching
Reference deployment of JupyterHub and nbgrader on a single server
Stars: ✭ 194 (+252.73%)
Mutual labels:  ipython
jupyter boilerplate
Adds a customizable menu item to Jupyter (IPython) notebooks to insert boilerplate snippets of code
Stars: ✭ 69 (+25.45%)
Mutual labels:  ipython
Ipywebrtc
WebRTC for Jupyter notebook/lab
Stars: ✭ 171 (+210.91%)
Mutual labels:  ipython
Hyperdash Sdk Py
Official Python SDK for Hyperdash
Stars: ✭ 190 (+245.45%)
Mutual labels:  ipython
Ipython
Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
Stars: ✭ 15,107 (+27367.27%)
Mutual labels:  ipython
Sendcode
Send code and text to macOS and Linux Terminals, iTerm, ConEmu, Cmder, Tmux, Terminus; R (RStudio), Julia, IPython.
Stars: ✭ 166 (+201.82%)
Mutual labels:  ipython
IPlantUML
A Python package which defines a PlantUML cell magic for IPython.
Stars: ✭ 85 (+54.55%)
Mutual labels:  ipython
Algorithm
Leetcode 组队刷题
Stars: ✭ 193 (+250.91%)
Mutual labels:  ipython
dotfiles
My collection of dotfiles
Stars: ✭ 77 (+40%)
Mutual labels:  ipython
Dtale
Visualizer for pandas data structures
Stars: ✭ 2,864 (+5107.27%)
Mutual labels:  ipython
Juniper
🍇 Edit and execute code snippets in the browser using Jupyter kernels
Stars: ✭ 189 (+243.64%)
Mutual labels:  ipython
rk
The remote Jupyter kernel/kernels administration utility
Stars: ✭ 53 (-3.64%)
Mutual labels:  ipython
Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: ✭ 12,989 (+23516.36%)
Mutual labels:  ipython
yuuno
Yuuno = VapourSynth + Jupyter
Stars: ✭ 39 (-29.09%)
Mutual labels:  ipython
Signals And Systems Lecture
Continuous- and Discrete-Time Signals and Systems - Theory and Computational Examples
Stars: ✭ 166 (+201.82%)
Mutual labels:  ipython
Halo
💫 Beautiful spinners for terminal, IPython and Jupyter
Stars: ✭ 2,532 (+4503.64%)
Mutual labels:  ipython
hilda
LLDB wrapped and empowered by iPython's features
Stars: ✭ 99 (+80%)
Mutual labels:  ipython
React-Jupyter-Viewer
A react component to embed .ipyb notebooks in a blog or something
Stars: ✭ 50 (-9.09%)
Mutual labels:  ipython
popmon
Monitor the stability of a Pandas or Spark dataframe ⚙︎
Stars: ✭ 434 (+689.09%)
Mutual labels:  ipython

ipython-auto-import

How many times have you quickly wanted to test something, only to do this?

In [1]: df = pandas.read_clipboard()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-45ec783f831b> in <module>()
----> 1 df = pandas.read_clipboard()

NameError: name 'pandas' is not defined

In [2]: import pandas # *sigh*

In [3]: df = pandas.read_clipboard()

Inspired by this SO question, you'll never need to import a module again in IPython!

In [1]: pandas.read_clipboard()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-4c32fab697e6> in <module>()
----> 1 pandas.read_clipboard()

NameError: name 'pandas' is not defined
AutoImport: Imported referenced module "pandas", will retry
---------------------------------------------------------------------------
Out[1]:
       First,Last
0         Foo,Bar
1  John,Appleseed

The first time you reference a module, it imports it auto-magically! Don't have the module installed? You can pip install it right from IPython.

Installation

NOTE: It's recommended that you install colorama for best results: pip install colorama

Easy way

Clone the repo and run install.py.

Hard way

Add import_wrapper.py to ~/.ipython/extensions, then call %load_ext import_wrapper either at the IPython prompt, or add

c.InteractiveShellApp.exec_lines.append("%load_ext import_wrapper")

at the end of ~/.ipython/profile_default/ipython_config.py.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].