Coder Social home page Coder Social logo

tu-jupyter-template's Introduction

Template for Jupyter instance with Docker for NLP4Web and FoLT

Template for the Jupyter instances for the lectures NLP4Web and FoLT of TU Darmstadt with Docker.

Requirements

  • Docker
  • Docker-Compose

Usage

  1. Use this repository as template and fork your own repository
  2. Configure the Dockerfile (see Configuration for more information):
  3. Run the docker-compose file with docker-compose up
  4. Go to localhost:8080

Configuration

You have to specify if you want to use NLP4Web or FoLT and Jupyter-Lab or Jupyter-Notebook.

For this, the Dockerfile must be edited.

NLP4Web OR FoLT

NLP4Web

If you use this template for NLP4Web, comment

# RUN pip3 install -r requirements_folt.txt && python -m nltk.downloader all

and comment out

RUN pip3 install -r requirements_nlp4web.txt

FoLT

If you use this template for FoLT, comment out

RUN pip3 install -r requirements_folt.txt && python -m nltk.downloader all

and comment

# RUN pip3 install -r requirements_nlp4web.txt

Jupyter-Lab OR Jupyter-Notebook

Jupyer-Lab

If you want to use Jupyter-Lab (default and recommend), comment out

CMD ["jupyter-lab", "--notebook-dir=/mnt/notebook", "--allow-root", "--no-browser", "--ip=*", "--port=8080", "--NotebookApp.token=''", "--NotebookApp.password=''"]

and comment

# CMD ["jupyter-notebook", "--notebook-dir=/mnt/notebook", "--allow-root", "--no-browser", "--ip=*", "--port=8080", "--NotebookApp.token=''", "--NotebookApp.password=''"]

Jupyter-Notebook

If you want to use Jupyter-Notebook, comment

# CMD ["jupyter-lab", "--notebook-dir=/mnt/notebook", "--allow-root", "--no-browser", "--ip=*", "--port=8080", "--NotebookApp.token=''", "--NotebookApp.password=''"]

and comment out

CMD ["jupyter-notebook", "--notebook-dir=/mnt/notebook", "--allow-root", "--no-browser", "--ip=*", "--port=8080", "--NotebookApp.token=''", "--NotebookApp.password=''"]

Add your own Python packages

Edit the requirements_*.txt and add python libaries. Then rebuild the docker compose with docker-compose up --build.

Alternatively, you can create your own requirements.txt. Remember to specify your Dockerfile to use this requirements.txt.

Credits & Contributions

Made by nclskm.

No guarantee of completeness or runnability. Feel free to contribute if you've any improvements.

tu-jupyter-template's People

Contributors

nclskfm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

flyerdude

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.