Code Monkey home page Code Monkey logo

miscnb's Introduction

Miscellaneous Notebooks

A collection of various Jupyter Notebooks related to machine learning and data science in general.

Project Organization

├── Makefile   <- Makefile with commands like `make data` or `make train`
├── README.md  <- The top-level README for developers using this project.
│
└── notebooks  <- Jupyter notebooks directory.

Make

Here we will document the different make commands defined in the Makefile. All commands (excluding the all command which is simply executed by running make) are executed by the following format: make [COMMAND]. To see the contents of a command that will be executed upon invocation of the command, simply run make -n [COMMAND].

Commands

  • all: (aka: make) alias for jupyter command
  • jupyter: launches the Jupyter notebook development Docker image
  • containers: launch all Docker containers
  • list-containers: list all running containers
  • stop-containers: simply stops all running Docker containers
  • restart-containers: restart all containers
  • clear-nb: simply clears Jupyter notebook output
  • clean: combines all clearing commands into one

Docker

This is the same Docker command that is defined in the Makefile as the jupyter command. To run it outside of make, first git clone the repo:

git clone https://github.com/RagingTiger/MiscNB.git

Then cd MiscNB and run the following:

docker run -d \
           --rm \
           --name misc_nb \
           -e JUPYTER_ENABLE_LAB=yes \
           -p 8888 \
           -v $PWD:/home/jovyan \
           ghcr.io/ragingtiger/omega-notebook:master && \
sleep 5 && \
  docker logs misc_nb 2>&1 | \
    grep "http://127.0.0.1" | tail -n 1 | \
    sed "s/:8888/:$(docker port misc_nb | \
    grep '0.0.0.0:' | awk '{print $3'} | sed 's/0.0.0.0://g')/g"

Click the link (should look similar to: http://127.0.0.1:RANDOM_PORT/lab?token=LONG_ALPHANUMERIC_STRING) which will automatically log you in and allow you to start running the notebooks.


Project based on the cookiecutter data science project template. #cookiecutterdatascience

miscnb's People

Contributors

ragingtiger avatar

Watchers

Kostas Georgiou avatar  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.