Skip to content

AmpelProject/Ampel-ipython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ampel-ipython

Ampel ipython magic function

Allows to quickly import any ampel unit using %qi unit_name

Install

pip3 install ampel-ipython

Usage

%load_ext ampel_quick_import
%qi ClassName

alt text

%qr ClassName

alt text

Autoload

To load ampel_quick_import automatically when ipython starts:

Add the following lines to ~/.ipython/profile_default/ipython_config.py (you might have to create the file):

c = get_config()
c.InteractiveShellApp.extensions = ['ampel_quick_import']

Note that you can also configure default imports therein such as:

c.InteractiveShellApp.exec_lines = ['import json, numpy as np, matplotlib.pyplot as plt']

About

Ampel ipython magic functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages