A mixed bag of python questions: Ipython crash, best build-backend, matplotlib inline plotting, pytorch #977
Unanswered
allanolesen
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Hi,
|
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Regarding PyTorch, it's one of the most frequently requested packages. I have several goals:
It would probably be a CPU-only version, the code for the Metal shaders seems to be Mac-specific. At least at first. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I discovered a-shell yesterday and am now trying to figure out how far I can get with a-shell as a python development platform for my own private python packages. Until now, I have used a mixture of GitHub Codespaces and Carnets Plus, but Codespaces isn't local on my iPad, and Carnets Plus seems limited to notebooks only.
So far I have stumbled into the following questions/issues.
Ipython crash
If I start ipython with
python3 -m IPython, everything works fine. However, if I start it withipython, it works only once. The next two starts will crash. Then it will work again once. Crash twice, etc.Is this a known issue?
If yes: Is the cause and potential fixes already well-understood?
I ask this cryptical question, because my prosthetic brain proposed some possible fixes to a-shell after driving me through a lot of testing to isolate the problem. However, I don't trust LLMs, and I don't want to waste everyone's time by posting the results here.
Anyway, the overly confident answer from the LLM was that ipython is crashing because it is trying to get a ctypes handle to a-shell's python implementation, and this handle is missing or bad. I have a long report from that session, and I will be happy to share it with anyone who is willing to potentially waste their time reading it.
Inline plotting with mathplotlib
I do not really expect to be able to plot inline in a terminal. But I will ask anyway, hoping that a solution exists. It would be nice tosomehow see the plots without changing all my code so it saves them as files.
Build backend for my own packages
Is there a "whitelist" of build backends, which behave well in a-shell when pip builds a package from source on the fly, using the build backend information in that package's pyproject.toml?
I tried one of my packages, which had poetry as its build backend, and that caused pip to fail with the message 'pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'poetry.core.masonry.api''.
Is it possible to install pytorch?
I already know why the answer has to be 'no'. I am asking anyway, just to be sure.
Integration between a-shell and Carnets Plus?
Is it correctly understood that Carnets Plus can only run python code as .ipynb files? I can edit .py files, but I have not found a way to execute them.
When I have both a-shell and Carnets Plus installed, is there some way of combining their functionality into something resembling an IDE for python code?
Beta Was this translation helpful? Give feedback.
All reactions