silmaril

u/silmaril@discuss.tchncs.de
3 posts · 18 comments

Recent posts

Recent comments

Great to hear!

I'd phrase this differently: The "system version" is the version that was used by the build system.

Most users don't build the application themselves, so this is some system they have zero knowledge about, which means this information is not helpful at all.

I understood "your system" as "the system I am using to run this software".

I know this might be hard for developers sometimes, but please try to phrase all documentation (except chapters about actual development, builds etc.) from the user's point of view. Build systems are no part of a typical user's environment ;-)

Would it be possible to display the Python version and/or it's executable path in the CAS configuration dialog?

That's where I would look for this information and it wouldn't leave any potential for documentation not being up to date.

The FAQ currently states:

On Linux distributions it usually means LabPlot only works with the system version of Python.

What is the "system version"?

On my system python3 --version returns Python 3.10.12, but print(sys.version) in LabPlot returns 3.11.9 (main, Nov 10 2011, 15:00:00) [GCC 13.2.0]

The information about Python versions on Windows seems to be correct, but I would recommend to mention the LabPlot version we are talking about in the FAQ, since this will probably change in future versions.

Does this mean that as a user of the binary build, I have to install the correct Python version to be used by LabPlot / Cantor on my machine? And the current version will need Python 3.11.x and won’t work if Python 3.12.x is the only version installed?

How can I determine the required Python version from LabPlot in case it’s not already installed?

And while we're at it: How does LabPlot decide which python version to use?

On my Linux system, there is no python and python3 points to Python 3.10.12.

LabPlot uses Python 3.11.9 and Python 3.12.2 is also installed.

Which mechanism is used by LabPlot to find the Python version to use? And (how) can I tweak it to make it use 3.12?

I think it should be quite simple to make this possible.

All we need is a parameter for the python binary path in the CAS Python configuration.

This could be improved further by adding such a parameter to the project, which would override the global value if it is set and which could be a relative path, too. (OK, maybe we would also need some kind of automatism to find the correct binary both on Windows and Linux, because the path from the venv to the acutal python binary is different depending on the system).

I just looked at the documentation and saw that LabPlot only supports Python 2.x, which makes it entirely uninteresting to me.

I'd love to see support for current Python versions, including following new releases, which might be easier to achieve with 3.x.

But I know this kind of things is a lot of work to get started, so I won't blame anyone for not doing this ;-)

That's a great feature, indeed!

I just downloaded this file and opened the notebook in LabPlot. This worked fine in general, but in some places I got errors because of missing packages.

I can see that there is a requirements.txt in the same repo two folders up.

How do I install packages into the environment LabPlot uses? Where can I define a venv for LabPlot? Can I define different venvs for different projects?

That's a good opportunity to look what other Lemmy apps there are in the F-Droid store.

The list is impressingly long now :-)

I tried Voyager and it doesn't show any of the problems I have in Jerboa while offering everything I need - that solves it very well for me.

Yes! That's the correct way to write this, thank you! 😊

And it's already set inside /etc/nixos/hardware-configuration.nix after installing inside a VM.

I had an additional layer 8 problem - clipboard sharing doesn't work until it's enabled in the VirtualBox host , too 🙃

Thank you very much!

nix.settings.extra-experimental-features = [ “nix-command” “flakes” ];
seems to actually work in my setup.

And it's nice to know that I can make do with one --extra-experimental-features argument for several features at once.

May I be so bold as to ask a follow-up question that doesn't have much to do with this one?

What do I have to do to get Virtualbox Guest Additions to work on NixOS? Not having a shared clipboard is driving me crazy ;-)

Once again everything I found on the internet leads to errors during sudo nixos rebuild. I hope it's just another case of knowing the correct names for the actual packages or options to use.

Can someone help me here?

Thank you very much for those links!

Generally I don't like video tutorials much - I prefer reading things in my own speed and being able to copy & paste stuff.
But only looking at the titles of those videos sounds promising enough to give them a try :-)
(I didn't yet have the time to watch any of them.)

One aspect I find interesting:

One look at the Misterio77 configs shows that the concept of flakes seems to be important. I have no idea what they are, but I can see that both youtubers have something about flakes as the second video in their NixOS playlists - looks like I should better learn about this concept soon :-)

Currently I am playing around in a virtual machine to get to know NixOS and find out what I can do with it.

I'd like to set up a usable everyday desktop configuration with "everything".

This includes typical desktop applications like Firefox, Thunderbird, LibreOffice ... development tools like Git, PyCharm, VS Code, ... all those little things I need to work productively like Nextcloud desktop client, KeePassXC, Zim and many more.

And I'd like to have zsh as my default shell with my own custom theme and some dotfiles for different applications that currently reside in a git repo that I clone to every machine I use.

I know this is a lot and I don't expect to get this all up and running in an afternoon.

It's just that I find it very hard to find the next bit of information I need. For example I found snippets to put into my configuration.nix long before I found out where to find this file (/etc/nixos/configuration.nix).

From the answers so far I gather that there really is no (official or unofficial) documentation to tell NixOs newbies how to start, so everyone just makes do with the things they find.

So I think I'll just fight my way through this jungle, too ;-)
The price that's waiting at the other and seems to be totally worth it!

If anyone has valuable tips or links to help me achieve something from the things I listed, those would be very much appreciated! :-)

I know what you mean - the problem with this approach is that things might work, but I am using it not in the way it's intended, because I didn't understand the underlying concepts.. But I cannot search for concepts of which I don't know they exist...