Skip to content

Commit

Permalink
Fix ipython check (#530)
Browse files Browse the repository at this point in the history
* Fix ipython check

* Update changelog

* Spelling
  • Loading branch information
MattPainter01 committed Mar 19, 2019
1 parent 03875c3 commit 5220a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Fixed
- Fixed bug where replay errored when train or val steps were None
- Fixed a bug where mock optimser wouldn't call it's closure
- Fixed a bug where the notebook check raised ModuleNotFoundError when IPython not installed

## [0.3.0] - 2019-02-28
### Added
Expand Down
2 changes: 1 addition & 1 deletion torchbearer/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def torchbearer(line):
import IPython.core.magic
torchbearer = IPython.core.magic.register_line_magic(torchbearer)
set_notebook(True)
except NameError:
except NameError or ModuleNotFoundError:
pass


Expand Down

0 comments on commit 5220a2b

Please sign in to comment.