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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:89571e6851e0b62af9ce7df65b3dacb0aa60bddd09ee9415ac5dd9bd9c472cd4" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:396dbbbef1f5fcd9edffd3fa859d8accd724e1b17d40c53b14e96539c7e77b8e" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:029e6d75e1a5bcd05ac659251fefd2b5420dbe5f5b1aa26b34bd5472d5097e80" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# to be executed from different notebook! | |
def check_notebook_reproducibility(filename): | |
md5s = [] | |
for attempt in [1, 2]: | |
!jupyter nbconvert --to notebook --inplace --execute $filename --ExecutePreprocessor.timeout=86400 | |
result = !md5sum $filename | |
md5s.append(result) | |
print result | |
a, b = md5s | |
assert a == b, 'hashes are different' |
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
----> call function __getitem__ | |
------> call function __contains__ | |
<------ exit function __contains__ | |
------> call function _getitem_column | |
--------> call function _get_item_cache | |
----------> call function get | |
------------> call function _get_items | |
<------------ exit function _get_items | |
------------> call function isnull | |
--------------> call function _isnull_new |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Run command with the same user ID as current user | |
# -v $(pwd):/tmp/mount - mount current directory to /tmp/mount/ | |
# --env HOME="/tmp/" - some commands may need to be able to write to your home, se it to temporary folder | |
docker run -ti --rm -v $(pwd):/tmp/mount —user=$(id -u) --env HOME="/tmp/" debian:jessie | |
# Mount current users and group and be able to use them | |
# mount /etc/group and /etc/passwd read only | |
# set user from $USER | |
docker run -ti --rm -v $(pwd):/tmp/mount -w /tmp/hx -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro —user=$USER debian:jessie |
OlderNewer