Coder Social home page Coder Social logo

markusand / jupyterlab-data-science Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snowplanner/jupyterlab-data-science

0.0 1.0 0.0 6.68 MB

Mount a Docker container with essential python packages ready for data science and data visualization

Jupyter Notebook 99.93% Dockerfile 0.07%

jupyterlab-data-science's Introduction

Data Science Jupyter Lab

Mount a Docker container with essential python packages ready for data science and data visualization.

  • All packages in @jupyter/scipy-notebook: numpy, pandas, scipy, matplotlib, sqlalchemy, ...
  • Geospatial packages: geopandas, shapely, geopy, geoplot
  • Data viz: ipyleaflet, plotly

Install

git clone https://github.com/snowplanner/jupyterlab-data-science.git

In case you need another package that is not included in the container, just add it to the requirements.txt file and launch the following command on terminal to rebuild the image.

docker compose build

Usage

Create a .env file, even if empty.

After launching Docker, run the following command in terminal from the project directory root.

# Use -d flag for detached mode
docker compose up -d

# Access inside shell with
docker compose exec jupyter-lab sh

# Shutdown the container
docker compose down

Jupyter Lab is accessible on your browser at http://localhost:8888.

Alternatively, you can connect to the Docker container with VS Code. Despite this method adds some performance overhead, you'll be able to use the toolbox of your choice (linters, formatters, tests, etc.).

Contribute

โš ๏ธ KEEP THIS REPO TIDY.
Use folders and subfolders to structure your notebooks and modules. Use appropriate semantic names following python naming conventions.

There is some basic sample code in the folder examples to help you get started.

Use conventional commits whenever possible; that means, always.

Always use a feature branch to develop your code and avoid future merge conflicts. If you'd like to integrate your code to the basecode, issue a new pull request to the main branch.

A code review process is a must to ensure standard compliant code.

๐Ÿšซ Never ever EVER commit sensitive data or secrets.
Use environment variables to store tokens, passwords and other information that must be kept safe. The Docker container automatically embeds all environment variables from a .env file (not trackable with git) in the root of the repo. Access variables as follows:

import os

# Considering .env file to contain the API_KEY variable
# API_KEY=pk.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
api_key = os.environ['API_KEY']

jupyterlab-data-science's People

Contributors

markusand 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.