July 2nd, 2024

Show HN: Adding Mistral Codestral and GPT-4o to Jupyter Notebooks

Pretzel is an open-source tool enhancing Jupyter with AI code generation, inline tab completion, sidebar chat, and error fixing. Seamless transition from Jupyter is possible, maintaining compatibility. Installation via 'pip install pretzelai'.

Read original articleLink Icon
Show HN: Adding Mistral Codestral and GPT-4o to Jupyter Notebooks

Pretzel is an open-source alternative to Jupyter, aiming to enhance Jupyter's capabilities. It introduces features like AI code generation, inline tab completion, sidebar chat, and error fixing. Transitioning from Jupyter to Pretzel is seamless as it maintains compatibility with existing configurations, settings, keybindings, and extensions. To get started, users can install Pretzel with 'pip install pretzelai' and launch the web interface with 'pretzel lab'. The platform offers inline tab completions, AI prompt with "Ask AI" or shortcut keys, and a sidebar for interacting with AI, generating code, and asking questions. Users can also configure their own OpenAI API key. For more information, installation instructions, and FAQs, visit the Pretzel GitHub repository.

Related

LibreChat: Enhanced ChatGPT clone for self-hosting

LibreChat: Enhanced ChatGPT clone for self-hosting

LibreChat introduces a new Resources Hub, featuring a customizable AI chat platform supporting various providers and services. It aims to streamline AI interactions, offering documentation, blogs, and demos for users.

How to Use Jupyter Notebooks: The Ultimate Guide – DataCamp

How to Use Jupyter Notebooks: The Ultimate Guide – DataCamp

Jupyter notebooks are crucial for technical and data work, offering code, output, and text in one document. DataLab, a hosted service, enhances collaboration and database connectivity. Popular among data professionals, they come in hosted and local types, with DataLab providing a user-friendly hosted option.

The Death of the Junior Developer – Steve Yegge

The Death of the Junior Developer – Steve Yegge

The blog discusses AI models like ChatGPT impacting junior developers in law, writing, editing, and programming. Senior professionals benefit from AI assistants like GPT-4o, Gemini, and Claude 3 Opus, enhancing efficiency and productivity in Chat Oriented Programming (CHOP).

Anthropic: Collaborate with Claude on Projects

Anthropic: Collaborate with Claude on Projects

Claude.ai introduces Projects feature for Pro and Team users to organize chats, enhance collaboration, and create artifacts like code snippets. North Highland reports productivity gains. Future updates prioritize user-friendly enhancements.

Maker of RStudio launches new R and Python IDE

Maker of RStudio launches new R and Python IDE

Posit introduces Positron, a new beta IDE merging R and Python development. Built on Visual Studio Code, it offers a user-friendly interface, data exploration tools, and seamless script running for polyglot projects.

Link Icon 22 comments
By @williamstein - 4 months
There are many other Jupyter notebooks with extensive AI integration. These are less (or not at all) open source, but more mature in some ways, having been iterated on for over a year:

- https://noteable.io/ -- pretty good, but then they got acquirehired out of existence

- https://deepnote.com -- also extensive AI integration and realtime collaboration

- https://github.com/jupyterlab/jupyter-ai -- a very nice standard open source extension for gen AI in Jupyter, from an Amazon. JupyterLab of course also has fairly mature realtime collaboration now.

- https://colab.google/ -- has great AI integration but of course only with Google-hosted models

- https://cocalc.com -- very extensive AI integration everywhere with all the main hosted models, mostly free or pay as you go; also has realtime collaboration. (Disclaimer: I co-authored this.)

- VS Code has a great builtin Jupyter notebook, as other people have mentioned.

Am I missing any?

By @TidbitsTornado - 4 months
This is a great implementation by your team + contributors. Simple but effective. And nice to see you’ve kept it open source instead of some other Show HN submissions where they take open source work, make is closed, change a few things, and claim they’ve created something great.

Im curious to see if you continue building out some other features. While these are great features (copilot, chat, etc), I’d think most users would expect their IDE to have it out of the box (or with an extension) these days

By @ramonverse - 4 months
Ramon here, the other cofounder of Pretzel! Quick update: Based on some early feedback, we're already working on adding support for local LLMs and Claude Sonnet 3.5. Happy to answer any questions!
By @lschneider - 4 months
Github Copilot is the most useful tool I've found in a long time and having that in Jupyter Notebooks is just awesome. I've been missing that for quite some time. Great work guys!
By @carreau - 4 months
Curious about the limitations that made you fork it instead of making an extension.
By @mritchie712 - 4 months
> GitHub Copilot still isn’t supported in Jupyter

What do you mean by this? I've been using Copilot in VS Code .ipynb files for over a year now.

By @morsch - 4 months
These editors all focus on programming, does anybody have a recommendation for more general note-taking?

I'd like to do things like organizing very rough notes, having them reformatted according to a general template, apply changes according to a prompt, maybe ask questions that refer to a collection of notes, ...

By @chad1n - 4 months
I don't really get the appeal of this, I'd just use vscode with Jupyter if I really wanted "ai" integration since I can then access the whole ecosystem of extensions. The idea isn't that bad, but it lacks purpose.
By @trungld - 4 months
your work is basically a Jupyter extension (https://github.com/pretzelai/pretzelai/tree/main/packages/pr...). Why don't just create an extension like others in here (https://github.com/jupyterlab-contrib) instead of hard forking JupyterLab?
By @superkuh - 4 months
At this point I'm almost afraid to ask but my attempts to figure it out have failed. What is a Jupyter notebook? Where is the code running? On your computer? On someone elses computer?
By @renewiltord - 4 months
I just use PyCharm and Copilot plugin. Works like a charm.
By @f-lux - 4 months
Have y'all seen Jupyter AI? Seems to do the same but better (more features, more mature codebase, better UI/UX/DX) while being a JupyterLab extension https://github.com/jupyterlab/jupyter-ai
By @widepeepo8 - 4 months
Codeium(https://codeium.com/) already supports this, along with VSCode jupyter notebook extensions. It has 400k downloads on the VSCode extension store. don't really see the point of this when codeium already exists..
By @dakshgupta - 4 months
Curious on why you went with Codestral for autocomplete, does it outperform other local models? How is the performance compared to GPT or Claude for autocomplete?

Any plans to finetune Codestral for this specific usecase?

By @mathiasn - 4 months
Have you seen Livebook? Best Jupyter Notebook ever!! https://livebook.dev/
By @downrightmike - 4 months
I installed it into my jupyter env and it runs fine on port 8889, but the default port 8888, it just sits waiting on the AI to generate a response.
By @mitjam - 4 months
Are there technical reasons for the fork or could Pretzel have been implemented as a set of extensions?
By @skybrian - 4 months
Are the file formats the same? Are there any Pretzel-specific extensions?
By @localfirst - 4 months
seems like the problem I am experiencing right now is that I'm overwhelmed by the sheer number of tools and choices its frankly exhausting

there is a feeling that i can do anything and everything with AI but in reality I can't do anything because i can't prioritize and choose anymore due to choice fatigue