From 28e8bdf7f8286bd431b7f3b709e79f3827b31469 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 24 Dec 2025 13:54:03 +0900 Subject: updates --- debian/.local/bin/vipy | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 debian/.local/bin/vipy (limited to 'debian/.local/bin/vipy') diff --git a/debian/.local/bin/vipy b/debian/.local/bin/vipy new file mode 100755 index 0000000..8e0e3cb --- /dev/null +++ b/debian/.local/bin/vipy @@ -0,0 +1,42 @@ +#!/bin/sh + +# Create a new notebook JSON structure +notebook='{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython" + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}' + +[ -z "$1" ] && echo "Enter a file name!" && exit + +# Write the JSON to a new .ipynb file +echo "$notebook" >"$1.ipynb" + +# Check if the file was created successfully +[ -f "$1.ipynb" ] && echo "$1.ipynb created successfully." || echo "Failed to create a Jupyter Notebook." -- cgit v1.2.3