Skip to main content

A server extension for JupyterLab's featurize extension

Project description

featurize-jupyterlab

A JupyterLab extension.

Prerequisites

  • Python >= 3.7
  • Node.js >= 8

It's recommended to use nvm to manage your node and npm versions.

Installation

jupyter labextension install featurize-jupyterlab

Development

For the first time

  1. Clone this repo
git clone git@github.com:louis-she/featurize-jupyterlab.git
  1. Create virtual environment
cd featurize-jupyterlab
python -m venv .venv
source .venv/bin/activate
  1. Install Python dependencies
brew install postgresql
pip3 install -r requirements.txt
  1. Install frontend dependencies
npm install
  1. Install Typescript
npm install -g typescript
  1. Add jupyter extension
pip3 install -e .
./.venv/bin/jupyter serverextension enable --py featurize_jupyterlab
./.venv/bin/jupyter labextension install . --no-build
  1. Add featurize extension
pip3 install featurize-package
./.venv/bin/featurize_server package:add ftpkg.demo
  1. Start development file watching
npm run dev

For the regular time

  1. source .venv/bin/activate
  2. npm run dev

Writing tests

We use pytest to write the tests case. All tests goes in the featurize_jupyterlab/tests directory.

Both the test file and method should be started by test_, using the following command to run all the tests,

pytest featurize_jupyterlab/tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

featurize_jupyterlab-0.0.27.tar.gz (41.3 kB view details)

Uploaded Source

File details

Details for the file featurize_jupyterlab-0.0.27.tar.gz.

File metadata

  • Download URL: featurize_jupyterlab-0.0.27.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for featurize_jupyterlab-0.0.27.tar.gz
Algorithm Hash digest
SHA256 8efe6e94f7f1c6dd7c595eaf8b6afeaf4d325c9565268f9f7a23c2be2f30c7bf
MD5 035bad3f56b6297c85f2304c3eb2c4d8
BLAKE2b-256 25b3c4f783c994986e4f24e922365071f0448f24f1290e5d220dee05ef69993d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page