GithubHelp home page GithubHelp logo

feddernico / promptgpt Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.84 MB

A Jupyter Notebook to help you write prompts efficiently

License: GNU General Public License v3.0

Jupyter Notebook 99.60% HTML 0.40%

promptgpt's Introduction

promptGPT: IPyWidgets Interactive Prompt Generator

A Jupyter Notebook to help you write prompts efficiently

Description

promptGPT is a Python-based project that leverages Jupyter widgets to offer an interactive user interface for prompt generation. This tool allows users to easily select different subject areas (e.g., Interpret Code, Generate Data, Data Science, Machine Learning, etc.) and generate corresponding prompts to guide their queries or tasks.

Features

  • Interactive Dropdown: Allows users to select the subject area.
  • Customizable Textarea: Provides space for users to modify the prompt.
  • Generate Prompt Button: One-click operation to display the generated prompt.

Requirements

  • Python 3.x
  • Jupyter Notebook or Jupyter Lab
  • IPyWidgets
  • IPython

Installation

To install the required packages, run the following commands:

pip install ipywidgets
pip install IPython

Usage

  1. Open a new Jupyter Notebook.
  2. Paste the code into a new cell.
  3. Run the cell to initialize the widgets.
  4. Use the dropdown to choose the subject area.
  5. Use the textarea to enter or modify your prompt.
  6. Click the "Generate Prompt" button to display the formatted prompt.

Code Structure

  • subject_widget: Dropdown for subject selection.
  • input_widget: Textarea for prompt customization.
  • update_value: Function to update the textarea based on selected subject.
  • on_button_clicked: Function to display the generated prompt upon button click.

Contributing

If you have suggestions for how promptGPT could be improved, feel free to open an issue or create a pull request.

License

This project is licensed under the GNU General Public License v3.0.


This should provide a comprehensive guide for anyone interested in your project. Given your interest in both leading data science initiatives and disseminating knowledge through your blog, maintaining high-quality documentation like this README can be very beneficial. Would you like to discuss any specific section in more detail?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.