Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
NbSwitch is a tool for modifying the use case of lessons inside jupyter notebooks, pure markdown, and other file formats.
NbSwitch let's you bring a notebook with educational content, describe a new use case, and change the original one to that using Claude Sonnet 3.5!
There are thousands of incredible educational notebooks out there that could be shown some love, so, what if that meant that, in the case of data-related topics, we could change the use case of any given notebook to a completely new one? That's what NbSwitch is for. :sunglasses:
As of now, the app works in the following way:
.ipynb
file.The app can be found live here.
Limitations
max_tokens=4_096
.This project was created as part of Anthropic's June 2024 Hackathon and it was build using their Claude Sonnet 3.5 model.
While I made this app to participate in the Hackathon, I see a lot of value in this project and will continue to polish and host it for free for as long as I can. The code will remain open-source as well. :)
Note: The code in this repo is fresh out of the oven, meaning, its ugliness might offend people, its lack of tests might give some a cardiac arrest, and its lack of React or something similar in the front-end might... (I'll leave that last one to you).
Create an environment.
python -m venv venv
or
mamba create -n hackathon python=3.11
Activate your environment.
source venv/bin/activate
or
mamba activate hackathon
Install the dependencies.
pip install -r requirements.txt
Run the app.
uvicorn main:app --reload
anthropic
- SDK to interact with Anthropic's suite of models.instructor
- tool for enforcing structured output from LLMs using pydantic.pydantic
- typescript for Python.fastapi
- for processing and serving requests.nbconvert
- to change notebooks from one format to another.nbformat
- to manipulate the JSON structure of a notebook.AlpineJS
- interactions in the front-end.Pines UI
- Tailwind CSS and AlpineJS components.HTMX
- for sending the request to the back-end.FAQs
NbSwitch is a tool for modifying the use case of lessons inside jupyter notebooks, pure markdown, and other file formats.
We found that nbswitch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.