|
2153 | 2153 | "\n",
|
2154 | 2154 | "print('Success!')"
|
2155 | 2155 | ]
|
2156 |
| - }, |
2157 |
| - { |
2158 |
| - "cell_type": "markdown", |
2159 |
| - "metadata": { |
2160 |
| - "deletable": false, |
2161 |
| - "editable": false, |
2162 |
| - "nbgrader": { |
2163 |
| - "cell_type": "markdown", |
2164 |
| - "checksum": "0689099bda888a255e032e19a8b0b28f", |
2165 |
| - "grade": false, |
2166 |
| - "grade_id": "cell-b8318bace082261d", |
2167 |
| - "locked": true, |
2168 |
| - "schema_version": 3, |
2169 |
| - "solution": false, |
2170 |
| - "task": false |
2171 |
| - } |
2172 |
| - }, |
2173 |
| - "source": [ |
2174 |
| - "# Optional: getting Python + Jupyter working for you outside of our course\n", |
2175 |
| - "\n", |
2176 |
| - "At some point after the course is done, you will lose access to the JupyterHub server where you have been doing your course work. If you want to continue to use Python + Jupyter (for other courses at UBC, or for your work after UBC) you have two options:\n", |
2177 |
| - "\n", |
2178 |
| - "1. a server solution\n", |
2179 |
| - "2. a local installation solution\n", |
2180 |
| - "\n", |
2181 |
| - "We will point you to how you can do both, as well as provide [guidance to take a copy of your homework from our Canvas JupyterHub server](#Getting-your-files-off-of-the-Canvas-JupyterHub)." |
2182 |
| - ] |
2183 |
| - }, |
2184 |
| - { |
2185 |
| - "cell_type": "markdown", |
2186 |
| - "metadata": { |
2187 |
| - "deletable": false, |
2188 |
| - "editable": false, |
2189 |
| - "nbgrader": { |
2190 |
| - "cell_type": "markdown", |
2191 |
| - "checksum": "5ad825830dc0b0a8007fe8885717d691", |
2192 |
| - "grade": false, |
2193 |
| - "grade_id": "cell-936a7113cb83576f", |
2194 |
| - "locked": true, |
2195 |
| - "schema_version": 3, |
2196 |
| - "solution": false, |
2197 |
| - "task": false |
2198 |
| - } |
2199 |
| - }, |
2200 |
| - "source": [ |
2201 |
| - "## Getting your files off of the Canvas JupyterHub\n", |
2202 |
| - "\n", |
2203 |
| - "1. On the Canvas JupyterHub open a terminal and type: `tar -zcvf dsci-100.tar.gz dsci-100`\n", |
2204 |
| - "2. Go to the JupyterHub Control Panel/Home and click the box beside the file `dsci-100.tar.gz`, and then click \"Download\"\n", |
2205 |
| - "3. Log onto either the https://ubc.syzygy.ca/ (CWL authentication) or https://cybera.syzygy.ca/ (Google authentication) servers\n", |
2206 |
| - "4. Click the white \"Upload\" button (beside the \"New\" button), and select `tar -zxvf dsci-100.tar.gz`. Then click the blue \"Upload\" button to complete the upload.\n", |
2207 |
| - "5. open a terminal and type: `tar -zxvf dsci-100.tar.gz` \n", |
2208 |
| - "\n", |
2209 |
| - "You should have your files now available on either of those servers above. \n", |
2210 |
| - "\n", |
2211 |
| - "*On Mac or Linux `tar` also works in terminal, and so you can use this strategy to have the files available locally, however you will need Jupyter installed to view them.*" |
2212 |
| - ] |
2213 |
| - }, |
2214 |
| - { |
2215 |
| - "cell_type": "markdown", |
2216 |
| - "metadata": { |
2217 |
| - "deletable": false, |
2218 |
| - "editable": false, |
2219 |
| - "nbgrader": { |
2220 |
| - "cell_type": "markdown", |
2221 |
| - "checksum": "2eb0be90118dd9f23be047b93829a47d", |
2222 |
| - "grade": false, |
2223 |
| - "grade_id": "cell-e5fc9403235886f2", |
2224 |
| - "locked": true, |
2225 |
| - "schema_version": 3, |
2226 |
| - "solution": false, |
2227 |
| - "task": false |
2228 |
| - } |
2229 |
| - }, |
2230 |
| - "source": [ |
2231 |
| - "### 1. A Server Solution\n", |
2232 |
| - "\n", |
2233 |
| - "- As a student at UBC, you have access to another JupyterHub that you can access using your UBC CWL: https://ubc.syzygy.ca/\n", |
2234 |
| - "- If you have a Google account, you have access to another JupyterHub that does not depend on you being a UBC student (i.e., having a valid CWL): https://cybera.syzygy.ca/" |
2235 |
| - ] |
2236 |
| - }, |
2237 |
| - { |
2238 |
| - "cell_type": "markdown", |
2239 |
| - "metadata": { |
2240 |
| - "deletable": false, |
2241 |
| - "editable": false, |
2242 |
| - "nbgrader": { |
2243 |
| - "cell_type": "markdown", |
2244 |
| - "checksum": "24e910d9a25762b3c9f1e4ab685e4c56", |
2245 |
| - "grade": false, |
2246 |
| - "grade_id": "cell-05fbbeb3f01c7176", |
2247 |
| - "locked": true, |
2248 |
| - "schema_version": 3, |
2249 |
| - "solution": false, |
2250 |
| - "task": false |
2251 |
| - } |
2252 |
| - }, |
2253 |
| - "source": [ |
2254 |
| - "### 2. A Local Installation Solution\n", |
2255 |
| - "\n", |
2256 |
| - "- Depending on your device, you may be able to install Jupyter and Python on it. Below we provide instructions for the 3 major operating systems ([Mac](#A.-Install-Jupyter-+-Python-on-Mac), [Windows](#B.-Install-Jupyter-+-Python-on-Windows) and [Linux]())\n", |
2257 |
| - "\n", |
2258 |
| - "### A. Install Jupyter + Python on Mac\n", |
2259 |
| - "\n", |
2260 |
| - "#### A.1. Install Python\n", |
2261 |
| - "\n", |
2262 |
| - "Go to https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.pkg and download the latest version of Python for Mac. Open the file and follow the installer instructions.\n", |
2263 |
| - "\n", |
2264 |
| - "#### A.2. Install Jupyter\n", |
2265 |
| - "Head to https://www.anaconda.com/download/#macos and download the Anaconda version for Mac OS. Follow the instructions on that page to run the installer. *Anaconda is a software bundle installs Jupyter and Python and a few other tools. We recommend using it because it makes installation much simpler than other methods.*\n", |
2266 |
| - "\n", |
2267 |
| - "#### A.3 Test if it works:\n", |
2268 |
| - "\n", |
2269 |
| - "- Open terminal and type: `jupyter notebook`\n", |
2270 |
| - "\n", |
2271 |
| - "The above command should open a web browser, with Jupyter's home inside it. Try creating a new Python notebook and running some simple Python code (e.g., `print(\"hello!\")`) to test that it works.\n", |
2272 |
| - "\n", |
2273 |
| - "### B. Install Jupyter + Python on Windows\n", |
2274 |
| - "\n", |
2275 |
| - "#### B.1. Install Python\n", |
2276 |
| - "\n", |
2277 |
| - "Go to https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe and download the latest version of Python for Windows. Open the file and follow the installer instructions.\n", |
2278 |
| - "\n", |
2279 |
| - "#### B.2. Install Jupyter\n", |
2280 |
| - "Head to <https://www.anaconda.com/download/#windows> and download the Anaconda version for Windows with Python 3.6. After the download has finished, run the installer selecting the following options:\n", |
2281 |
| - " - On the **Advanced Installation Options** page, check both boxes (see image below)\n", |
2282 |
| - " - For all other pages, use the default options\n", |
2283 |
| - "\n", |
2284 |
| - "<img align=\"left\" src=\"https://github.com/UBC-MDS/UBC-MDS.github.io/raw/master/resources_pages/imgs/anaconda_windows.png\" width=\"550\">\n" |
2285 |
| - ] |
2286 |
| - }, |
2287 |
| - { |
2288 |
| - "cell_type": "markdown", |
2289 |
| - "metadata": { |
2290 |
| - "deletable": false, |
2291 |
| - "editable": false, |
2292 |
| - "nbgrader": { |
2293 |
| - "cell_type": "markdown", |
2294 |
| - "checksum": "e23f035ca47c72a264e496fe2472ebf3", |
2295 |
| - "grade": false, |
2296 |
| - "grade_id": "cell-6679df31675785b3", |
2297 |
| - "locked": true, |
2298 |
| - "schema_version": 3, |
2299 |
| - "solution": false, |
2300 |
| - "task": false |
2301 |
| - } |
2302 |
| - }, |
2303 |
| - "source": [ |
2304 |
| - "#### B.4 Test if it works:\n", |
2305 |
| - "\n", |
2306 |
| - "- Open Windows Command Prompt (select the Start button, type cmd, and click Command Prompt from the list) and type: `jupyter notebook`\n", |
2307 |
| - "\n", |
2308 |
| - "The above command should open a web browser, with Jupyter's home inside it. Try creating a new Python notebook and running some simple Python code (e.g., `print(\"hello!\")`) to test that it works.\n", |
2309 |
| - "\n", |
2310 |
| - "### C. Install Jupyter + Python on Linux\n", |
2311 |
| - "\n", |
2312 |
| - "#### C.1. Install Python\n", |
2313 |
| - "\n", |
2314 |
| - "Go to https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh and download the latest version of Python for Linux.\n", |
2315 |
| - "\n", |
2316 |
| - "\n", |
2317 |
| - "#### C.2. Install Jupyter\n", |
2318 |
| - "Head to https://www.anaconda.com/download/#linux and download the Anaconda version for Linux with Python 3.6. Follow the instructions on that page to run the installer. *Anaconda is a software bundle installs Jupyter and Python and a few other tools. We recommend using it because it makes installation much simpler than other methods.*\n", |
2319 |
| - "\n", |
2320 |
| - "#### C.3 Test if it works:\n", |
2321 |
| - "\n", |
2322 |
| - "- Open terminal and type: `jupyter notebook`\n", |
2323 |
| - "\n", |
2324 |
| - "The above command should open a web browser, with Jupyter's home inside it. Try creating a new Python notebook and running some simple Python code (e.g., `print(\"hello!\")`) to test that it works." |
2325 |
| - ] |
2326 | 2156 | }
|
2327 | 2157 | ],
|
2328 | 2158 | "metadata": {
|
|
0 commit comments