Version: 0.7.1
Last Updated: Unknown
Use this tempalate to generate new lift projects.
| Variable | Data Type | Info |
|---|---|---|
name | string | Name of the blog post |
1---2basedir: content/blog3---4---5date: "<%= name.split('-').filter((_data, index) => index < 3).join("-") %>"6image: https://cdn.dennisokeeffe.com/assets/<%= name %>/main-image.png7title: <%= _.startCase(name.split('-').filter((_data, index) => index >= 3)) %>8description: <%= description %>9tags: "python,100daysofpython,machine learning"10icons: "dok,python,conda"11series:12 - "100 Days of Python": 013---1415> This is Day TODO of the #100DaysOfPython challenge.1617This post will use the ... library to ... .1819Source code can be found on my GitHub repo [`okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>`](https://github.com/okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>).2021## Prerequisites22231. Familiarity [Conda](https://docs.conda.io/projects/conda/en/latest/index.html) package, dependency and virtual environment manager. A handy additional reference for Conda is the blog post ["The Definitive Guide to Conda Environments"](https://towardsdatascience.com/a-guide-to-conda-environments-bc6180fc533) on "Towards Data Science".242. Familiarity with [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/gettingstarted/install.html). See [here](https://blog.dennisokeeffe.com/blog/2021-07-19-hello-jupyter-notebook) for my post on JupyterLab.253. These projects will also run Python notebooks on VSCode with the [Jupyter Notebooks](https://code.visualstudio.com/docs/datascience/jupyter-notebooks) extension. If you do not use VSCode, it is expected that you know how to run notebooks (or alter the method for what works best for you).2627## Getting started2829Let's create the `<%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>` directory and install the required packages.3031```s32# Make the `<%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>` directory33$ mkdir <%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>34$ cd <%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>3536# Create a docs folder to place our notebook37$ mkdir docs38$ touch docs/<%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>39```4041At this stage, ...4243We can now begin adding code to our notebook.4445## ...4647In our file `docs/<%= _.kebabCase(name.split('-').filter((_data, index) => index >= 3)) %>`, we can add the following:4849```py50# Importing our required libraries51from sklearn import datasets52import pandas as pd53import numpy as np54import matplotlib.pyplot as plt55plt.style.use('ggplot')56```5758## Summary5960Today's post demonstrated how to ... .6162## Resources and further reading63641. [Conda](https://docs.conda.io/projects/conda/en/latest/index.html)652. [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/gettingstarted/install.html)663. [Jupyter Notebooks](https://code.visualstudio.com/docs/datascience/jupyter-notebooks)674. ["The Definitive Guide to Conda Environments"](https://towardsdatascience.com/a-guide-to-conda-environments-bc6180fc533)685. [`okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>`](https://github.com/okeeffed/<%= name.split('-').filter((_data, index) => index >= 3).join("-") %>)6970_Photo credit: [`user`](https://unsplash.com/@user)_