Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple instances on IpadOS #311

Open
BenOnAir opened this issue Sep 28, 2023 · 3 comments
Open

Multiple instances on IpadOS #311

BenOnAir opened this issue Sep 28, 2023 · 3 comments

Comments

@BenOnAir
Copy link

Hi!

Since coding usually involves working on multiple files at the same time, I was wondering if there was a way to open multiple instances of Carnets so that you could open multiple jupyter notebooks at the same time on IpadOS.
Stage Manager permits that and some apps already have this feature like Safari for example.

Thank you for this wonderful app that saved me for my Data Science Master degree!

@holzschu
Copy link
Owner

Hi,
Carnets has a strong limit: you can only run up to 4 different Python interpreters at the same time. That strongly limits what can be done. I've tried very hard to hide this limit, but it is still present.

Since the Jupyter server is always running and uses one interpreter, and the kernel uses another, that leaves only two extra interpreters. Any call "pip install" will use these two, so I feel that I cannot run multiple instances of Carnets (until I find a way to extend the number of interpreters).

But, the good news is: Carnets also contains Jupyterlab. It's not the default, but it's there. You can switch from "notebook" (the notebook v6 version) to "retrolab" using Settings. Once in "retrolab", you can switch to Jupyterlab (in the TestFlight version, the default settings is "notebooks v7", and you can also switch to Jupyterlab). In Jupyterlab, you can have multiple tabs opened simultaneously, even side by side.

Now, the bad news: there is still a limit to 4 Python interpreters running simultaneously, but it's not enforced in Jupyterlab (so you can have up to 3 tabs opened and running). If you want to run pip in Jupyterlab, you'll have to close all tabs except one.

@BenOnAir
Copy link
Author

Thanks for the answer!
I'm sure you may have already think about that, but does not having two instances of the app Carnets would fix this issue with the amount of interpreters?

Instance A : 4 interpreters
Instance B : 4 interpreters

Regarding JupyterLab, it works great it's really making the software more flexible.
However the app don't save my choice to always choose JupyterLab over the classic Notebook, I always have to manually switch to JupyterLab. I don't know if that can be fixed.

Have a nice day!

@holzschu
Copy link
Owner

For the first question, you can definitely install both Carnets and Carnets-with-scipy, which will give you two instances that can run side by side. That will probably have an impact on your processor and battery usage, though, since that means 4 different Python running simultaneously (two jupyter servers, and two jupyter kernels). But it will work.

For the second question, that's a good question. I need to think about how to do it. It's not a question asked by many people so far, since JupyterLab usage is relatively low, but it's worth doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants