Giter VIP home page Giter VIP logo

using-lessons's Introduction

Using Jupyter Notebooks

Install the jupyter notebook following the tutorial here.

Add Notebook Extensions

conda install -c conda-forge jupyter_contrib_nbextensions

Check the following:

  • Collapsible Headings - Defaults

Themify (Optional)

pip install jupyterthemes

I personally use a variant of the grade3 theme.

Pretty Plots

Add the following lines towards the end of your ~/.jupyter/custom/custom.css file.

.output {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

This will make plots and figure outputs centred.

Additionaly, if you've used JupyterThemes, you can style the plots by calling jtplot_style(), included with the startup script once at the top of your notebook.

Startup Script

Place startup.ipy from this repository into your ~/.ipython/profile_default/startup folder.

This will do all the necessary common setup including importing frequently used modules and setting up useful global variables and functions.


Installing MagNet

MagNet is a high-level library I'm developing on top of PyTorch that is aimed at making the creation, training, debugging and deployment of Deep Learning projects easy.

Clone the MagNet repository by running

git clone https://github.com/svaisakh/magnet.git

Hide the directory

mv magnet .magnet

Checkout the develop branch.

cd .magnet
git checkout develop

Add the directory to the $PYTHONPATH variable by adding the following line to your .bashrc (Ubuntu) / .bash_profile (macOS)

export PYTHONPATH=$PYTHONPATH:~/.magnet

Update by running

source ~/.bashrc or source ~/.bash_profile as appropriate


Running Lesson Notebooks

Clone the appropriate repo

git clone <repo_uri>

where <repo_uri> can be found from the GitHub page of the lesson by clicking on the green Clone or Download button.

Go into the repo

cd <repo_name>

Create the conda environment that has all the needed packages and dependencies.

conda env update

If the environment name is <env_name>, activate it

conda activate <env_name>

Add JupyterThemes (if installed)

pip install jupyterthemes

Run the Jupyter Notebooks

jupyter notebook

using-lessons's People

Contributors

svaisakh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.