nbdev icon indicating copy to clipboard operation
nbdev copied to clipboard

Per-notebook option to disable `__all__`

Open jph00 opened this issue 4 years ago • 6 comments

jph00 avatar Sep 23 '20 18:09 jph00

Just for my own learning, what is a situation where you might want to disable __all__? I'm trying to imagine a situation where I would not want it

hamelsmu avatar Sep 23 '20 18:09 hamelsmu

@hamelsmu the situation came up with wanting to export .all and .imports without having a __all__=[] (which would happen if we loaded in a ton of imports to a notebook and hit nbdev_build_lib without new functions).

I'd consider this a good example of if someone wanted to generate this via notebook instead. (IE a utility import file) (I hope I worded that correctly enough)

muellerzr avatar Sep 23 '20 19:09 muellerzr

Thanks @muellerzr very helpful as usual

hamelsmu avatar Sep 23 '20 19:09 hamelsmu

I'll add this to v2 roadmap

hamelsmu avatar Nov 01 '20 22:11 hamelsmu

Hey, how do i make all.py from notebook for individual modules just like fastai ?

satyajitghana avatar Dec 14 '20 05:12 satyajitghana

Those are made manually right now

On Mon, Dec 14, 2020 at 12:41 AM Satyajit Ghana [email protected] wrote:

Hey, how do i make all.py for individual modules just like fastai ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fastai/nbdev/issues/264#issuecomment-744182562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3YCVYDT2F74MNT54CUMFTSUWQOZANCNFSM4RXLJU4Q .

muellerzr avatar Dec 14 '20 05:12 muellerzr