Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
ebdb5b7c
Commit
ebdb5b7c
authored
Apr 14, 2015
by
Alexandre Duret-Lutz
Browse files
python: avoid some locking errors with the history
* wrap/python/tests/ipnbdoctest.py: Store all the history in memory.
parent
98e4d99b
Changes
1
Hide whitespace changes
Inline
Side-by-side
wrap/python/tests/ipnbdoctest.py
View file @
ebdb5b7c
...
...
@@ -189,10 +189,10 @@ def run_cell(kc, cell):
def
test_notebook
(
nb
):
# run %pylab inline, because some notebooks assume this
# even though they shouldn't
km
=
KernelManager
()
km
.
start_kernel
(
extra_arguments
=
[
'--pylab=inline'
],
# Do not save the history to disk, as it can yield spurious lock errors.
# See https://github.com/ipython/ipython/issues/2845
km
.
start_kernel
(
extra_arguments
=
[
'--HistoryManager.hist_file=:memory:'
],
stderr
=
open
(
os
.
devnull
,
'w'
))
kc
=
km
.
client
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment