5 ms·
Jupyter AI
- toxik 3y agoMore like Jupyter LLM.
- tehsauce 3y ago“Welcome to Jupyter AI, which brings generative AI to Jupyter” Kinda strange statement. I think of Jupyter as one of the places generative AI originated!
- romnon 3y agofull circle indeed
- quickthrower2 3y agoThis innocent announcement is how it begins. “Lemmy help you with that… yeah grab a few more GPUs for me, thx…! much appreciated!”
- phillipcarter 3y agoThis is probably the more helpful page as it shows what you can do: https://jupyter-ai.readthedocs.io/en/latest/users/index.html#the-ai-and-ai-magic-commands https://jupyter-ai.readthedocs.io/en/latest/users/index.html... This is a nice feature! Not huge, but it's great DevEx (MLEngEx...?)
- falcor84 3y agoI found the sum example somewhat vexing. The right answer there should have been to just use the `sum` builtin directly rather than adding that silly extra function.
- cheeko1234 3y agoThanks for the link although for some reason I keep getting: Incorrect API key provided error on jupyter for chatgpt. I'm on a paid account so not sure why...
- freediver 3y agoGoogle Colab had generative AI in the notebook for quite a while but for some reason I didn't find myself using it. Wondering if others are finding use for genAI in notebooks.
- falcor84 3y agoI do find it quite useful to have copilot on when working on notebooks within VS Code. It's particularly useful when I can just write a comment explaining the kind of transformation I want, and it then writes a pandas incantation which I can immediately check and iterate on.
- skybrian 3y agoThis looks useful, but not quite what I hoped. GPT4 with Code Interpreter is a fun, frustrating experience where you’re writing a dialog about writing some code, sort of like pair programming or a code interview. Compared to a notebook, it’s terrible. The sandbox environment resets if you take a break. There’s also a quota, and if you hit that it forces taking a break, causing a reset. In a notebook, you could rerun all the cells and pick up where you left off. When using Code Interpreter, GPT4 will see a stack trace indicating that a symbol is undefined, interpret that as a reset, and write the code again. It’s sort of cool the first time it happens but it’s unnecessary and becomes tedious. The resulting experience is a cross between a roguelike and a text adventure, where I try to get something fun accomplished in one sitting, before running out quota. (This is strictly recreational programming.) It’s beta. I assume they know it has problems and will eventually fix it. I’d like to see a recreation of this “writing a dialog together about coding” experience using a notebook-like interface that isn’t terrible. The point isn’t just to write the code (it’s doing it the hard way), it’s writing a tutorial about how to solve a problem. Jupyter AI looks like a somewhat more practical tool. It’s designed to not use the AI API too much to keep expenses down, and doesn’t have the impractical limitation that you cannot write the code yourself. It’s not the same game, though.
- anotherpaulg 3y agoYou might find it interesting to try my open source ai coding tool “aider”. It lets you pair program with gpt-4 like you are describing. But the source code lives in your local git repo. You can start a new project or work with an existing repo. You can fluidly switch back and forth between a coding chat where you ask gpt to edit the code and your own editor to make edits yourself. https://github.com/paul-gauthier/aider https://github.com/paul-gauthier/aider
- antman 3y agoSeems very good! In the edit a whole repo example how do you account for many files i.e. many tokens? Can it also have a vector search?
- 3y ago
- Palmik 3y agoAlternatively, there's also Chapyter: https://github.com/chapyter/chapyter https://github.com/chapyter/chapyter
- nompx 3y agoI've tried a number of notebook AIs, jupyter ai, hex, deepnote, einblick. The one that worked best for me was einblick probably because it's data-aware. For AIs that don't support that you need to be overly specific when writing prompts, which is annoying, and you keep having to rename/reference the correct dataframes and variables (even more annoying).
- esafak 3y agoCan you expand on this "data awareness"? What does it mean, and what are its benefits?
- nompx 3y agoBy data-aware I mean that the AI leverages additional context about the data to generate code for a given prompt. Let's say you're asking an AI to "build a regression model for column X". To give you a targeted, executable response, the AI needs to know: which dataframes contain a column named "X"? if there are many such dataframes, which one should be referenced for the regression task? Is X a numeric column, and if not can it be converted to numeric column? Does the data need to be normalized beforehand? If the AI is unable to answer such questions on its own, it will only ever be able to return a generic answer. That's equivalent to typing it into ChatGPT, requiring the user to modify the returned code before it actually does what the user asked for. That clearly isn't a great for an AI that operates on data. A data-aware AI on the other hand is able to provide more targeted responses that require much less user intervention because it has access to the broader context. A couple of other benefits: - the AI will have an easier time automatically fixing runtime errors - it knows how to fix and transform user input into the correct data format, e.g., "san fancisco" => "San Francisco"
- lmeyerov 3y agoWould love to exchange notes on this if you're up for it! For louie.ai, we've been going for data-aware from the get-go, and more broadly, doing a LLM-first tool design rethink. In the large, as I look around, it feels super early for the dev community figuring out core genAI notebook tool uses, flows, & assumptions. Likewise, zooming-in on individual feature experiments, current tools feel rough & underpowered relative to what we already know is possible. We've been forced to question a lot as we've been learning from going operational and experimenting with design. Again, if up for it, would love to chat & exchange notes!
- navbaker 3y agoSo I’ve just gotten a ggml version of llama2 chat running on my computer, would starting the included Flask OpenAI API clone allow for integration with Jupiter AI while staying local on my machine? Or are the code helpers all trained differently than the general chat models? Edit: it’s running via a llama.cpp server
- vouaobrasil 3y agoFor every development like this, you have the other side of the coin like the article also on the front page about Zoom using AI without any opt-out. Playing with fire indeed.
- ramesh31 3y agoBummer there's no support for local models. Llama 2 would run trivially on most Jupyter installs.
- voz_ 3y agoI want jupyter notebook style cells overlaid on an LLM, not and LLM overlaid over my notebook
- coding123 3y agoStop with the chatbots. Ai is much more useful to automatically handle things we did not before.
- santiagobasulto 3y agoSelf plug. If you're looking for something less-integrated into JupyterLab (with support for ipython and Jupyter Notebooks), check out: https://github.com/santiagobasulto/ipython-gpt https://github.com/santiagobasulto/ipython-gpt I wrote the package to solve my own issue, I need a really lightweight interface to GPT and primarily from ipython.
- pbsds 3y ago...reproducable? Doesn't GPT change all the time?
- albert_e 3y agoInstallation section: "Installation via pip within Conda environment (recommended)" This is one of the signs of Python's package management being too messy. I learnt NOT to use pip to install packages inside of conda environments after considerable pain. Now this guide says that's recommended?
- BreveDev 3y agoI installed this with pipenv with no issues. It looks to me like they’re just recommending that you do not install in the global Python, not specifically recommending Conda.
- mark_l_watson 3y agoThis is very cool! Coincidentally, I just spent an hour playing with this on Google Colab before seeing the docs posted here on HN. While I don’t find this to be a life changing new thing, it is useful and the ChatGPT output is formatted beautifully. I use an iPad a lot when I am reading and doing quick code experiments about what I am reading so Colab with the CodePilot like functionality, and things like ChatGPT support really make Colab more than OK for quick code experiments, especially when I need an A100 GPU.
- aleksanderhan 3y agoI made something similar just for fun: https://github.com/aleksanderhan/labpilot https://github.com/aleksanderhan/labpilot It seems Jupyter is perfect for these kinds of code assist tools. Instead of going to Wikipedia and scratching your head about how this algorithm worked again, you can just mention what you want and have a rough/good enough implementation in no time.
- renewiltord 3y agoI just copilot in PyCharm. It's really good. You can use a remote server.