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
- You run
notebookpkg install <template> --dataset yourdata.csv - The tool reads your CSV and detects column types automatically
- It injects your dataset path, target column, and column names into the template
- A ready-to-run
.ipynbfile is created in your current folder - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
889a54298ce26214199c2ff03df6b0516bc51586a36cdb9fac154e4fe61fa08b
|
|
| MD5 |
adb49b9ee641c0a1c7a61a75704179fb
|
|
| BLAKE2b-256 |
7aeaa717e395da7c691edb49b9a80c6fdf08c762d95a03842d5a02c175b2920a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f25e33a2af5b8be52915fbbaceeea0344ec7a209223fa9fe6bd1bff3c4db977
|
|
| MD5 |
90b1449f644463b12217ae742e67960d
|
|
| BLAKE2b-256 |
609c948e66a21cfca11bde5b1f19d2deaceef22d68a3e0f8d8aa43db4a9d4767
|