Important
Attention Needed: We are seeking assistance with implementing the following features:
- Syntax Highlighting for code snippets
- Responsive Design for better user experience on all devices
For more details, please check out the issue on GitHub: Issue #1
PySensei is an intelligent and interactive Python learning assistant. It helps users learn Python by providing guidance, answering questions, and offering code snippets with explanations. Developed by Zigao Wang, PySensei aims to make Python learning more accessible and engaging.
- Interactive Conversations: Engage in conversations to learn Python concepts.
- Code Snippets: Get Python code snippets with explanations.
- Dark/Light Mode: Toggle between dark and light modes for a comfortable viewing experience.
- Syntax Highlighting: Code snippets are highlighted for better readability. (Not accomplished yet)
- Copy to Clipboard: Easily copy code snippets to your clipboard.
- Responsive Design: Optimized for both desktop and mobile devices. (Not accomplished yet)
- Python 3.6 or higher
- Flask
- Prism.js
-
Clone the repository:
git clone https://github.com/pacerclub/pysensei.git cd pysensei
-
Install dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open your browser and navigate to:
http://127.0.0.1:5000
-
Start a New Conversation:
- Click the "+" button to start a new conversation.
-
Ask a Question:
- Type your Python-related question in the input box and press "Enter" or click "Ask".
-
Toggle Dark/Light Mode:
- Click the sun/moon icon in the header to switch between dark and light modes.
-
Copy Code Snippets:
- Click the "Copy" button next to any code snippet to copy it to your clipboard.
-
Delete a Conversation:
- Click the trash can icon next to a conversation to delete it.
-
Toggle Code Mode:
- Click the code icon in the input area to toggle code mode for better code writing experience.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Developed by Zigao Wang. Feel free to reach out for any questions or feedback.
Thank you for using PySensei! Happy coding!