Skip to main content

A package manager for Jupyter notebook templates

Project description

notebookpkg

One command to get a ready-to-run Jupyter notebook — wired to your dataset.

Built for CDAC ML students. Stop writing boilerplate. Just install a template, open Jupyter, and run all cells.


Install

pip install notebookpkg

Quick Start

# See all available templates
notebookpkg list

# Install a template for your dataset
notebookpkg install linear-regression --dataset Salary_Data.csv --target Salary

# Open the generated notebook in Jupyter
jupyter notebook linear-regression_notebook.ipynb

Available Templates

Template What it does
eda-basic head, shape, info, describe, nulls, dtypes, nunique
eda-visual pairplot, heatmap, distributions
eda-full full EDA + outliers (IQR), skewness, boxplots, value counts
linear-regression fit, predict, visualize, coefficient, MSE, R²
polynomial-regression PolynomialFeatures, smooth curve plot, MSE, R²
logistic-regression StandardScaler, fit, accuracy, confusion matrix, report
knn-classifier StandardScaler, KNN, accuracy, confusion matrix, report
naive-bayes GaussianNB, StandardScaler, confusion matrix heatmap
lasso-ridge LinearRegression + Lasso + Ridge, coefficient barh plots
decision-tree criterion=entropy, max_depth=5, plot_tree, evaluation
random-forest-regressor RFR, MSE, R², Actual vs Predicted scatter
random-forest-classifier model1, accuracy, confusion matrix, feature importance
svm-classifier Linear SVM → RBF SVM, AgeSalary feature engineering
kmeans-clustering Elbow method, KMeans, silhouette score, cluster plot
multi-model-compare LR + KNN + Naive Bayes on same dataset, comparison

Usage Examples

# EDA
notebookpkg install eda-basic --dataset data.csv
notebookpkg install eda-visual --dataset data.csv
notebookpkg install eda-full --dataset data.csv

# Regression
notebookpkg install linear-regression --dataset Salary_Data.csv --target Salary
notebookpkg install polynomial-regression --dataset hw.csv --target Price --degree 3
notebookpkg install lasso-ridge --dataset BostonHousing.csv --target medv

# Classification
notebookpkg install logistic-regression --dataset Day5.csv --target Purchased
notebookpkg install knn-classifier --dataset Day5.csv --target Purchased
notebookpkg install naive-bayes --dataset Day5.csv --target Purchased
notebookpkg install decision-tree --dataset SNP.csv --target Purchased
notebookpkg install svm-classifier --dataset SNP.csv --target Purchased
notebookpkg install multi-model-compare --dataset Day5.csv --target Purchased

# Ensemble
notebookpkg install random-forest-regressor --dataset housing.csv --target Price
notebookpkg install random-forest-classifier --dataset iris.csv --target species

# Clustering
notebookpkg install kmeans-clustering --dataset Mall_Customers.csv

Options

Flag Description Default
--dataset Path to your CSV file required
--target Target column name last column
--output Output notebook filename <template>_notebook.ipynb
--degree Polynomial degree (polynomial-regression only) 2

How It Works

  1. You run notebookpkg install <template> --dataset yourdata.csv
  2. The tool reads your CSV and detects column types automatically
  3. It injects your dataset path, target column, and column names into the template
  4. A ready-to-run .ipynb file is created in your current folder
  5. Open it in Jupyter and run all cells — everything is pre-wired

Requirements

pandas
numpy
scikit-learn
matplotlib
seaborn
nbformat
click

Author

Priyansu Pattanaik
B.Tech (Electronics & Telecommunication) | PG Diploma in AI — CDAC Kharghar
priyansupattanaikwork@gmail.com


License

MIT

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

notebookpkg-1.2.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notebookpkg-1.2.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file notebookpkg-1.2.0.tar.gz.

File metadata

  • Download URL: notebookpkg-1.2.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for notebookpkg-1.2.0.tar.gz
Algorithm Hash digest
SHA256 889a54298ce26214199c2ff03df6b0516bc51586a36cdb9fac154e4fe61fa08b
MD5 adb49b9ee641c0a1c7a61a75704179fb
BLAKE2b-256 7aeaa717e395da7c691edb49b9a80c6fdf08c762d95a03842d5a02c175b2920a

See more details on using hashes here.

File details

Details for the file notebookpkg-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: notebookpkg-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for notebookpkg-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f25e33a2af5b8be52915fbbaceeea0344ec7a209223fa9fe6bd1bff3c4db977
MD5 90b1449f644463b12217ae742e67960d
BLAKE2b-256 609c948e66a21cfca11bde5b1f19d2deaceef22d68a3e0f8d8aa43db4a9d4767

See more details on using hashes here.

Supported by

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