from fastai.utils.mod_display import * from fastai.gen_doc.nbdoc import * from fastai.utils.collect_env import * show_doc(progress_disabled_ctx) from fastai.vision import * path = untar_data(URLs.MNIST_SAMPLE) data = ImageDataBunch.from_folder(path) learn = cnn_learner(data, models.resnet18, metrics=accuracy) learn.fit(1) with progress_disabled_ctx(learn) as learn: learn.fit(1) show_doc(progress_disabled_ctx)