5 ms·
Show HN: IPython-GPT, a Jupyter/IPython Interface to Chat GPT
- thedebuglife 4y agoThis looks promising! I’m following.
- jetml 4y agoHey, kudos on getting this out. I just opened sourced a similar tool for the JetML platform. https://github.com/jetml/jetmlgpt https://github.com/jetml/jetmlgpt Would love to collaborate!
- musingsole 4y agoThis is awesome! The IPython prompt was the last place I expected a tool like this, but I'm very excited to use it!
- westurner 4y agoThis would be great in conjunction with e.g. papermill for running the same prompts over time and with the model as a parameter. Do IPython-GPT or jetmlgpt work in JupyterLite in WASM in a browser tab?
- jetml 4y agoI have only tested jetmlgpt using Jupyter notebooks.
- westurner 4y agoJupyterLite How to docs: https://jupyterlite.readthedocs.io/en/latest/howto/index.html https://jupyterlite.readthedocs.io/en/latest/howto/index.htm... "Create a custom kernel" https://jupyterlite.readthedocs.io/en/latest/howto/extensions/kernel.html https://jupyterlite.readthedocs.io/en/latest/howto/extension... : > We recommend checking out how to create a server extension first It may also be possible to just pip install the plain python package with micropip, or include it in a `jupyterlite build`; From https://github.com/jupyterlite/jupyterlite/issues/237#issuecomment-1276854713 https://github.com/jupyterlite/jupyterlite/issues/237#issuec... re: 'micropip': %pip install $@ # __import__('piplite').install($@) There's also micromamba, for mamba-forge packages (which are build with empack (emscripten) into WASM)
- kolibril13 4y agoThanks for sharing! For reference, some other Jupyter ChatGPT interface projects: https://github.com/jflam/chat-gpt-jupyter-extension https://github.com/jflam/chat-gpt-jupyter-extension https://github.com/fperez/jupytee https://github.com/fperez/jupytee https://github.com/JovanVeljanoski/jupyter-voicepilot https://github.com/JovanVeljanoski/jupyter-voicepilot
- santiagobasulto 4y agoThanks! I didn’t know about Jupytee. Before hacking ipython-gpt, I did a quick search and found the first one, but it works with a chrome extension (yikes), as it’s pre OpenAI API. And I had seen the one with voice, which looks like an amazing PoC, but I wanted something text based.
- benatkin 4y agoThere's no yikes, you install the extension from source and can use a different chrome profile
- ShamelessC 4y agoWhat about people trying to use any of the other browsers? Further if you have control over the server it makes more sense to do an extension there.
- benatkin 4y agoDisk space is cheap and it also works with Chromium which is open source. There's no reason not to temporarily run a browser if you would install an app to get the feature. A lot of things that should be extensions are apps and this ought to stop.
- ShamelessC 4y agoThat’s fair, but is super opinionated and probably off putting to a lot of people (myself included). Hence the “yikes”. Your last point seems irrelevant. This is about where the extension belongs - no one is making an app in this discussion and I would argue that a Chrome extension is much closer to an app than a Jupyter/IPython extension.
- aarondia 4y agoCongrats on the launch! I created Mito, a spreadsheet the lives inside of Jupyter. We've seen a ton of our users using Jupyter and ChatGPT playground side by side. We're also experimenting with bringing chatgpt into Jupyter through the Mito spreadsheet. (https://blog.trymito.io/5-lessons-learned-from-adding-chatgpt-to-a-mature-product/ https://blog.trymito.io/5-lessons-learned-from-adding-chatgp...) Looking forward to trying this out.
- westurner 4y agoCocalc also has new "generate a Jupyter Notebook from a [ChatGPT] prompt" functionality. https://twitter.com/cocalc_com/status/1644427430223028225 https://twitter.com/cocalc_com/status/1644427430223028225
- westurner 4y ago'2023-04-19: LaTeX + ChatGPT "Help me fix this..." buttons into our LaTeX editor' https://cocalc.com/news/latex-chatgpt-help-me-fix-this-buttons-into-our-latex-editor-6 https://cocalc.com/news/latex-chatgpt-help-me-fix-this-butto...
- codetrotter 4y ago> by default, the %%chat command preserves the conversation to give the Agent some context, in the same way that ChatGPT works. You can "reset" its status passing the flag --reset-conversation. What happens if you evaluate a bunch of cells in the notebook, then reset conversation and then evaluate say for example the 24th cell in the notebook? Does it get any additional context aside from said cell or not?
- santiagobasulto 4y agoI should explain that better. The context preserved is just what has been invoked with `%%chat`. Any other cells are not passed as context.
- codetrotter 4y agoI see. But let’s say that cells #8, #12 and #23 were originally invoked with %%chat. What happens then if you “reset” and then run cell #24?
- wodenokoto 4y agoThe same as if you ran cell #24 before anything else.
- textcortex 4y agoWe released ICortex ai powered python interpreter half a year ago or so: https://github.com/textcortex/icortex https://github.com/textcortex/icortex
- bt1a 4y agoI’m guessing this works with GPT-4 if your API key has access to it. Is that correct? Going to check this out, currently I’m just using a CLI.
- santiagobasulto 4y agoSeems like GPT-4’s model is not yet available through the API. You can check the available models with the `%chat_models` line magic.
- akiselev 4y agoYou have to sign up for the waitlist: https://openai.com/waitlist/gpt-4-api https://openai.com/waitlist/gpt-4-api There is also a separate waitlist for ChatGPT plugins.
- whoevercares 4y agoFrom core maintainers of Jupyter - https://github.com/jupyterlab/jupyter-ai https://github.com/jupyterlab/jupyter-ai
- rmbeard 4y agoYou don't need an interface to just prompt and get a response from chatGPT it works pretty much out of the box with the API. I guess these interfaces make the interaction a bit more user friendly though.
- pierrebrunelle 4y agoAlso a different one: https://github.com/noteable-io/genai https://github.com/noteable-io/genai with additional magics.
- rollinDyno 4y agoDoes anyone know if I can integrate this on Quarto? I use VSCode.
- deleted 4y ago[deleted]