@Morphit
@feddit.ukI'm upset that a meme I tried to remake with Unicode box drawing characters lines up terribly in apps: https://lemmy.ca/post/28490027 Shouldn't code blocks render in monospace?
On Lemmy's web frontend it's perfect:
On Connect it looks like this:
On Jerboa it's basically the same:
Eternity does use monospace but the box drawing characters seem to be too wide.
All I can find about it here is one post from a year ago: https://lemmy.ca/post/1492857
Hi All,
I'm still very new to Nix but trying to daily-drive NixOS.
What I'm currently stuck on is injecting Python packages into a Jupyterlab service. What I have at the moment in the home-manager.home portion of my system flake is the following:
systemd.user.services.jupyter = let
jupyter = pkgs.jupyter-all.override {
python3 = pkgs.python311.withPackages (python-pkgs: with python-pkgs; [
numpy
matplotlib
]);
};
in {
Service = {
Type = "simple";
WorkingDirectory = "${home.homeDirectory}/notebooks";
ExecStart = "${jupyter}/bin/jupyter-lab --no-browser";
};
};
This fires up a JupyterLab process that I can connect to and which runs fine, but numpy etc. can't be imported. From a devshell, I see that the python.withPackages
mechanism seems to rely on $PYTHONPATH
to pass in a python3-3.11.8-env
package that contains a lib/python3.11/site-packages
. I'm guessing that the systemd service just needs to have an Environment
key, but where do I get the python3-3.11.8-env
path from?
The Jupiter executable is in a /nix/store/#-python3-3.11.8-env/bin
location, but the site-packages only include the modules for Jupyter so I assume there's another python3-3.11.8-env
in the nix-store that does have the python packages I'm trying to get. Trying things like jupyter.env
gives errors like *** Python 'env' attributes are intended for interactive nix-shell sessions, not for building! ***
but I'm just taking a stab in the dark here.
I'd appreciate any pointers on this. I see there are helpers like JupyEnv, but these seem focused on setting up ephemeral devshells, not running a service for long-term notes and seem like overkill for what I want.
I seem to have gotten a saved account that can't be switched to and therefore can't be removed.
My instance had some server side issues and on PC I had to delete my cookies to get the desktop site to work. Connect wouldn't work and I had to add the account again. At some point the account name has changed to my email address @feddit.uk, which looks weird since it has two @ symbols. The newly added account works fine, but there's this stuck second version of it.
When I try to switch to the broken version I get an error pop up that just says "Error: unable to switch to 'me@email.domain@feddit.uk'" and it seems to retain the currently selected account.
Since I can't switch to that account, I can't sign out to have Connect forget it. So I don't see a way to get rid of it.
Has anyone else run into the same problem? Any suggestions?