-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (57 loc) · 3.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
title: play_it_later
keywords: fastai
sidebar: home_sidebar
summary: "A program for saving games for later dates for those with little self control."
description: "A program for saving games for later dates for those with little self control."
nb_path: "nbs/index.ipynb"
---
<!--
#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: nbs/index.ipynb
# command to build the docs after a change: nbdev_build_docs
-->
<div class="container" id="notebook-container">
{% raw %}
<div class="cell border-box-sizing code_cell rendered">
</div>
{% endraw %}
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="Install">Install<a class="anchor-link" href="#Install"> </a></h2>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>If you are using linux, and run into a <code>PyperclipException</code> you may need do <code>sudo apt-get install xclip</code></p>
<h2 id="Conda">Conda<a class="anchor-link" href="#Conda"> </a></h2><p><code>conda env create -f environment.yaml</code></p>
<p><code>source activate play_it_later && python setup.py develop</code></p>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="Docker-(highly-recommend)">Docker (highly recommend)<a class="anchor-link" href="#Docker-(highly-recommend)"> </a></h2><p>For cpu execution</p>
<div class="highlight"><pre><span></span>docker build -f play_it_later.Dockerfile -t play_it_later:latest .
docker run --rm -it -p <span class="m">8888</span>:8888 -p <span class="m">4000</span>:4000 --user <span class="s2">"</span><span class="k">$(</span>id -u<span class="k">)</span><span class="s2">:</span><span class="k">$(</span>id -g<span class="k">)</span><span class="s2">"</span> <span class="se">\</span>
-v <span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>:/opt/project/play_it_later play_it_later:latest <span class="se">\</span>
-v /etc/localtime:/etc/localtime /bin/bash
</pre></div>
</div>
</div>
</div>
<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h2 id="Contributing">Contributing<a class="anchor-link" href="#Contributing"> </a></h2><p>After you clone this repository, please run <code>nbdev_install_git_hooks</code> in your terminal. This sets up git hooks, which clean up the notebooks to remove the extraneous stuff stored in the notebooks (e.g. which cells you ran) which causes unnecessary merge conflicts.</p>
<p>Before submitting a PR, check that the local library and notebooks match. The script <code>nbdev_diff_nbs</code> can let you know if there is a difference between the local library and the notebooks.</p>
<ul>
<li>If you made a change to the notebooks in one of the exported cells, you can export it to the library with <code>nbdev_build_lib</code> or <code>make fastai2</code>.</li>
<li>If you made a change to the library, you can export it back to the notebooks with <code>nbdev_update_lib</code>.</li>
</ul>
</div>
</div>
</div>
</div>