You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a straight forward way to implement notebook like interface using this library (like jupyterlite / jupyterlab)? I I have been experimenting with usePythonConsole and I've found that it might work quite well.
I'm asking this mainly because the whole Pyodide ecosystem is new and there is not much info out there, especially regarding notebook interfaces which should now be relatively easy to implement with libraries like this one.
Thanks for any suggestions and keep up the good work.
The text was updated successfully, but these errors were encountered:
A basic notebook interface should be quite straightforward as you only need to worry about UI/UX, however replicating all of the features from Jupyter notebooks would require a lot of work.
The usePythonConsole hook is probably the best way to achieve this. You would need to reuse a single Python instance to retain variables.
One major feature of Jupyter is that they seem to have detection for popular data visualisation libraries, such as matplotlib plt.show() which isn't trivial to do and you would probably require custom handling for each library.
Reusing the same Python instance will retain variables, as it spawns a web worker which stays active until you terminate it or a user refreshes the page.
Support for accessing the Python scope is being tracked here #67 and is not yet implemented in react-py. This would allow for direct getting/setting data in Python from the JS side. There are methods in Pyodide which make this possible, but interacting with web workers adds a lot of complexity.
Is there a straight forward way to implement notebook like interface using this library (like jupyterlite / jupyterlab)? I I have been experimenting with
usePythonConsole
and I've found that it might work quite well.I'm asking this mainly because the whole Pyodide ecosystem is new and there is not much info out there, especially regarding notebook interfaces which should now be relatively easy to implement with libraries like this one.
Thanks for any suggestions and keep up the good work.
The text was updated successfully, but these errors were encountered: