deshaw / pyflyby

A set of productivity tools for Python
https://deshaw.github.io/pyflyby/
Other
347 stars 52 forks source link

Add infrastructure to lazily define variable via autoimport #345

Closed Carreau closed 2 months ago

Carreau commented 2 months ago

This should cover the feature request on IPython to have the ability to lazily define variable that can take some time to be created when first access in IPython;

It does so by utilizing the autoimport machinery of pyflyby and creating runtime modules via a import hook.

This has many advantage:

Carreau commented 2 months ago

One thing to decide is what the name of the high level API will be.

Testing and documentation are missing as well,.

Carreau commented 2 months ago

Ok, it's been two weeks, i'm going to merge that and we can iterate later if needed.