-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from betatim/escape-me
[MRG] Escape environment variable when using Python string formatting
- Loading branch information
Showing
5 changed files
with
28 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
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,2 @@ | ||
# install this in the kernel's environment, the user wants Python 2 there | ||
numpy |
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,3 @@ | ||
# install this in the environment in which the notebook server | ||
# is running nbgitpuller does not work with Python 2 | ||
nbgitpuller==0.6.1 |
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 @@ | ||
python-2.7 |
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,19 @@ | ||
#!/usr/bin/env python2 | ||
import os | ||
import sys | ||
|
||
print(sys.version_info) | ||
assert sys.version_info[:2] == (2, 7) | ||
|
||
import numpy | ||
|
||
try: | ||
import nbgitpuller | ||
except ImportError: | ||
pass | ||
else: | ||
raise Exception("'nbgitpuller' shouldn't have been installed from requirements3.txt") | ||
|
||
# Python 3 is the executable used for the notebook server, this should | ||
# have nbgitpuller installed | ||
os.system("python3 -c 'import nbgitpuller'") |