View plot.py
# setting up the layout of matplotlib figure
fig, ax = plt.subplots()
# use the distplot function from seaborn to plot the distribution of AAPL
sns.distplot(AAPL['Daily Return'].dropna(), color = 'indianred',
hist_kws=dict(alpha = 0.7))
# remove the plot borders
sns.despine()
View gist:8b492f2f6e0746007abf962f7f69aab1
core@agent-3-production ~ $ sudo cat /var/lib/docker/containers/bbade0b6f31f614029f93b1e4ac84e2deb59918fbf02d45643a39fec59245438/checkpoints/r-2840-NRXJT7BG3B7MFLDBCMRV-Libraries/criu.work/restore-2017-08-11T14:08:45.480917875Z/restore.log
(00.000462) Pagemap is fully functional
(00.000508) Found task size of 7ffffffff000
(00.013771) Found fd 0 (id pipe:[18293297]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013900) Inherit fd 0 moved to 9 to resolve clash
(00.013912) Found fd 1 (id pipe:[18293298]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013917) Inherit fd 1 moved to 6 to resolve clash
(00.013923) Found fd 2 (id pipe:[18293299]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013927) Inherit fd 2 moved to 8 to resolve clash
(00.065090) Adjust mmap_min_addr 0x1000 -> 0x10000
View gist:35b52bb2fed9827fae3b694258a9125e
build-staging core # guix weather --substitute-urls=http://localhost:8090
computing 5762 package derivations for x86_64-linux...
looking for 6004 store items on http://localhost:8090...###################################################################################]
updating list of substitutes from 'http://localhost:8090'... 100.0%
http://localhost:8090
5.2% substitutes available (310 out of 6004)
unknown substitute sizes
2630.4 MiB on disk (uncompressed)
0.006 seconds per request (33.4 seconds in total)
180.0 requests per second
View gist:be8eb0df40f251429187ddfa9c228d50
Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0...
guix substitute: error: download from 'https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0' failed: 504, "Gateway Time-out"
Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0...
guix substitute: error: download from 'https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0' failed: 504, "Gateway Time-out"
Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0...
guix substitute: error: download from 'https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0' failed: 504, "Gateway Time-out"
Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0...
guix substitute: error: download from 'https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-d
View gist:7ba5a74e073a44c3a05cdf64f577dc57
GET /nix-cache-info
GET /yilvkr8s1za6arm4zvwvlpl9z0bcxiyf.narinfo
In guix/scripts/publish.scm:
406:22 2 (render-narinfo/cached #<build-daemon 256.97 2066300> # ?)
In guix/store.scm:
756:9 1 (_ #<build-daemon 256.97 2066300> "yilvkr8s1za6arm4zvwv?")
In unknown file:
0 (put-bytevector #<input-output: socket 15> #vu8(29 0 ?) ?)
ERROR: In procedure fport_write: Broken pipe
View gist:41824d0233b459f57f1f342fa57c4631
coreutils nss-certs zlib unzip bzip2 which tar gawk grep gzip sed \
vim bash linux-libre-headers gcc-toolchain gfortran make \
r-minimal r-base64enc r-jsonlite r-plotly r-feather r-devtools \
r-boot r-ape r-diversitree r-dplyr r-rcurl \
guix
View gist:01a54abd063b9d74051b7cd1f5e8f794
/ # echo info /gnu/store/ykpfif2wzabhnn0a88sw3f96paa33k2z-r-minimal-3.4.0 | _NIX_OPTIONS=substitute-urls=https://guix-staging.nextjournal.com guix substitute --query
/gnu/store/ykpfif2wzabhnn0a88sw3f96paa33k2z-r-minimal-3.4.0
55
/gnu/store/0fzh44zpdw1h2dwpzgfw2lic05y4k6md-libxt-1.1.5
/gnu/store/0rdrki3avpahfj3h2ghx6g2s7aph7m6n-renderproto-0.11.1
/gnu/store/0xm7szwymsv87z7y4bi2lgvx2jhniqms-file-5.28
/gnu/store/1h0p1lgl5i1dmwa0rzxflv664zwwm6am-glibc-utf8-locales-2.25
/gnu/store/1x8x3bddq7pki89kyqlyx3g7dhkvviki-harfbuzz-1.4.6
View gist:cc492de101ca15c236f2382e7c386d5e
/ # guix package -i r-minimal
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
/modules/nextjournal/packages/python.scm:25:23: warning: expression not valid outside of quasiquote
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
The following package will be installed:
r-minimal 3.4.0 /gnu/store/lg6mk0ykdkhzxg8lqxg60widhdx24dp3-r-minimal-3.4.0
1 package in profile
The following environment variable definitions may be needed:
export PATH="/var/guix/profiles/default/guix-profile/bin${PATH:+:}$PATH"
View gist:5f55ccf287a1944f02361d92f7322691
/ # echo info /gnu/store/ykpfif2wzabhnn0a88sw3f96paa33k2z-r-minimal-3.4.0 | _NIX_OPTIONS=substitute-urls=https://guix-staging.nextjournal.com guix substitute --query
updating list of substitutes from 'https://guix-staging.nextjournal.com'... 100.0%
/gnu/store/ykpfif2wzabhnn0a88sw3f96paa33k2z-r-minimal-3.4.0
55
/gnu/store/0fzh44zpdw1h2dwpzgfw2lic05y4k6md-libxt-1.1.5
/gnu/store/0rdrki3avpahfj3h2ghx6g2s7aph7m6n-renderproto-0.11.1
/gnu/store/0xm7szwymsv87z7y4bi2lgvx2jhniqms-file-5.28
/gnu/store/1h0p1lgl5i1dmwa0rzxflv664zwwm6am-glibc-utf8-locales-2.25
View gist:1fbb45c2fd6260733ebc501256a566a7
/ # guix build --no-grafts r-minimal --dry-run
/modules/nextjournal/packages/python.scm:25:23: warning: expression not valid outside of quasiquote
substitute: updating list of substitutes from 'https://guix-staging.nextjournal.com'... 100.0%
The following derivations would be built:
/gnu/store/fn6zh3qx5wxb0hl148hny2ikgq9874yk-r-minimal-3.4.0.drv
/gnu/store/wblwwwp8rz3zjkxyvfkyc95vk0fbv5j6-graphite2-1.3.9.tgz.drv
/gnu/store/fz19na12vc2q6z32fqd5m58f43n15aa1-module-import-compiled.drv
/gnu/store/rd86ka93rlsmzm7kz261izahl2hbb9mk-module-import.drv
/gnu/store/6k3gfrdzdalwcwrhpggz9slh9dadp67m-python2-fonttools-2.5.drv
/gnu/store/s587y3w2201m12lr012f1j4cwsvsx8dk-graphite2-1.3.9.tar.xz.drv