Skip to content

Commit 573bb85

Browse files
committed
Truly all in one.
1 parent 4c55d52 commit 573bb85

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ output/*/index.html
4141

4242
# Sphinx
4343
docs/_build
44+
45+
# Demo result from the README
46+
.result

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,5 @@ $ python -c "import pickle; print(pickle.load(open('.result', 'rb')))"
1818
All in one shot:
1919

2020
```
21-
python -c "import sys; import cloudpickle; cloudpickle.dump((lambda x,y: x+y, (2,3), {}), sys.stdout)" \
22-
| docker run -i --name rhoyourboat cloudpipe/runner-py2;
23-
docker start rhoyourboat && \
24-
docker exec rhoyourboat cat /tmp/.result | python -c "import sys, pickle; print(pickle.load(sys.stdin))" && \
25-
docker stop rhoyourboat
21+
python -c "import sys; import cloudpickle; cloudpickle.dump((lambda x,y: x+y, (2,3), {}), sys.stdout)" | docker run -i --name rhoyourboat cloudpipe/runner-py2 && docker cp rhoyourboat:/tmp/.result . && cat .result | python -c "import sys, pickle; print(pickle.load(sys.stdin))" && docker stop rhoyourboat
2622
```

0 commit comments

Comments
 (0)