Sending data to Jupyter Notebook and getting output back

I want to pass some set of values to Jupyter Notebook (I already done coding in a notebook there) where a function will take these values and return me the output. I want to get this data back in Node Red to display.

Any idea , how can i achieve this?

I think it depends on what is hosting the notebook. For example, using Jupyter Lab, there is a server component that has a defined REST API that you may be able to use:

I am using Jupyter Notebook Anaconda Distribution installed on my PC. Everything is on localhost.

In that case, Anaconda manages running the server for you. I think that you will need to do some more reading about Jupyter server and how to interact with it. If it supports what you want to do via a REST API or websockets or even MQTT, or indeed pretty much any network protocol, then Node-RED will be able to interact with it.

So if you can sort out the Jupyter Server side, by all means come back to us and we should be able to help with the rest.

Personally I've given up on Anaconda, it is far too complex and I found it unreliable for me.

When I discovered that VScode has a Jupyter Notebook capability without any of the complexity of Anaconda (and without the licensing issues), I just use that. Just note that some of the fancy new features and extension currently require the "insiders" version of VSCode (which you can run along side your normal version). You can even use different kernels very easily such as the node.js kernel :slight_smile:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.