-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move IPYKERNEL_CELL_NAME from tox to pytest
This allows pytest to be executed directly without tox and without manual setting of the variable. Tox works well as before.
- Loading branch information
1 parent
1a87c0b
commit e32310e
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import os | ||
|
||
# This is important for ipykernel to show the same string | ||
# instead of randomly generated file names in outputs. | ||
# See: https://github.com/ipython/ipykernel/blob/360685c67c71cd33691c72c1e9e88d23a88f4021/ipykernel/compiler.py#L50-L55 | ||
os.environ["IPYKERNEL_CELL_NAME"] = "<IPY-INPUT>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters