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
[request] reconsider using xdg paths #2374
Comments
Yup, it's a dead horse. We've been through this issue plenty of times already.
Making every piece of documentation less clear. Also, it's not just documentation, but our replies to questions on Github, mailing lists, real time chat, and so on. Writing "edit your config in If you want to make it comply with XDG specs on your own systems, you can set
It is. We know that's not the Windows convention. Sorry to rebuff this, but I don't see any argument we haven't considered before. |
I'm glad you raised this up so we don't have to support xdg in nteract anymore. 🙇♂️ |
Glad to be of service. Since we're commenting on closed issues, I still struggle with the reasoning here:
Your users, like me, are supposed to be able to program something, which makes us (slightly) less confusable than sheep. We're readily expecting things like:
For your target audience, the introduced "unclarity" is non-existent.
This is a narrowly constructed argument. If your observation is a non-zero gain in streamlining of the help process, I'll take your word for it. But I did support for several cross platform software packages and the "massively more convenient" in the given context is hardly believable. Cheers! |
We made the change before and decided to go back to how it was before, so it can't really be laziness. It boils down to two competing arguments:
You (and a steady trickle of other people) clearly think that 1 is more important. The team maintaining it think that 2 is more important. Everyone involved understands both arguments, so discussions about it tend to end up with both sides reiterating their preference. (There's also 3. changing stuff adds confusion, which weighs in favour of leaving things as they are) |
This is not the first project I see that is reluctant in order to add support to XDG Base Directory but fortunately is part of the few that remains. Despite it, I'm thinking about this:
BTW, this is how one can use XDG Base Directory with iPython/Jupyter at the moment: export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter" |
I agree this reversal was a very, very unfortunate decision.
I strongly recommend a variation, to be safe if XDG_CONFIG_HOME is not set (it isn't in most distros): export IPYTHONDIR=${XDG_CONFIG_HOME:-$HOME/.config}/ipython
export JUPYTER_CONFIG_DIR=${XDG_CONFIG_HOME:-$HOME/.config}/jupyter |
The real argument of "group 1" is not about following a standard just for the sake of it, as your phrasing implies. Its about the benefits of this particular one: uncluttered As for 2... what exactly is "consistent location across platforms"? Different platforms have different filesystem hierarchy already! Program data, settings, cache are in completely different locations on Windows, Linux and Mac. Even the user's home folders are in very distinct locations. Users know that and it was never a big deal. Platforms also have different env vars to match such special dirs: Windows have Just because all those platforms happen to share an env var named |
ipython/ipython#48
ipython/ipython#4457
ipython/ipython#6070
#211
Sorry to beat this apparently dead horse, but I was testing out Jupyter and just realised that the config directory was wrong. And then with growing disbelief discovered that this was once reverted and even held onto.
The "often used in documentation" issue is cleanly solved by calling it [config dir] and linking to a page containing the paths listed by OS. This is standard procedure, don't tell me nobody with documentation commit access wants to take the time to create a single additional page and run
find doc/ -name "*.html" | xargs sed -i 's/\.jupyter/\<a href...\>\[config dir\]\<\/a\>/'"
(obviously run the adequate link syntax on the source of however you build your doc, possible mistakes should be trivially checkable with grep).And unless the config directory on Windows is ~/.jupyter as well (haven't checked, but assume/hope it's not), this weird "config goes here" idea could be strictly improved by hard-coding it to Desktop/jupyter-config (or Desktop\jupyter-config, if you will) to be consistent across platforms. Then you don't have to ask users about their platform (or point them to the doc page) AND don't have to tell them to navigate a terminal / unhide files (which is platform specific).
On a more serious note, going by the disussion so far there really seem to be no valid reasons to hold onto ~/.jupyter (
jupyter --paths
tells me config/data/runtime are separated nowadays), whereas OSX and Linux users would be thankful for the proper locations, as would those who have to deploy Jupyter in computer rooms... so here's another plea to reconsider a little bit before wontfixing this ;)The text was updated successfully, but these errors were encountered: