Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:31
    bartekbrak starred xonsh/xonsh
  • Nov 29 23:23
    PiyushJZ starred xonsh/xonsh
  • Nov 29 17:05
    anki-code commented #3985
  • Nov 29 17:05
    anki-code commented #3985
  • Nov 29 12:51
    anki-code commented #3706
  • Nov 29 12:50
    anki-code commented #3706
  • Nov 29 11:22
    janetat starred xonsh/xonsh
  • Nov 29 09:11
    codecov-io commented #3998
  • Nov 29 08:50
    jnoortheen synchronize #3998
  • Nov 29 08:29
    jnoortheen commented #3998
  • Nov 29 08:25
    jnoortheen commented #3998
  • Nov 29 08:21
    codecov-io commented #3998
  • Nov 29 07:55
    IvanaXu starred xonsh/xonsh
  • Nov 29 07:54
    codecov-io commented #3998
  • Nov 29 07:52
    jnoortheen synchronize #3998
  • Nov 29 07:51
    codecov-io commented #3998
  • Nov 29 07:49
    codecov-io commented #3998
  • Nov 29 07:35
    ikhrnet starred xonsh/xonsh
  • Nov 29 07:29
    jnoortheen synchronize #3998
  • Nov 29 07:27
    jnoortheen synchronize #3998
Anthony Scopatz
@scopatz
Hey all! Just FYI, I am on holiday this week, so that is why I am a little slow responding to issues & PRs
3 replies
eggcaker
@eggcaker
176011604479074_.pic_hd.jpg
Hi all, I want use the xontrib-kitty to display the chart on kitty terminal ,after load the xontrib-kitty make a simple plt.plot(range(10)), i got a very big chart like this, did I missing some setup ?
Anthony Scopatz
@scopatz
That looks like the matplotlib xontrib
anki-code
@anki-code
:new: New xontrib-hist-format - to get commands and output from history as Markdown and post it to Github in copy-pastable manner.
eggcaker
@eggcaker
@scopatz ??
Anthony Scopatz
@scopatz
It looks like the figsize is wrong for some reason
anki-code
@anki-code
:star2: 4000 stargazers :tada:
Ganesha Sharma
@Ganesha2282882
how do i force manjaro nibia (20.2) to use xonsh? i installed it with pacman and then pip
and chshed it
but logging out and back in did not do anything
CaféHaine
@cafehaine
maybe your terminal is overriding your preferred shell ? is xonsh used in a tty ?
Ganesha Sharma
@Ganesha2282882
it's used in manjaro kde with Konsole and CoolRetroTerm
i wanted to see what happens to uninstall bash but it pacman showed a bunch of package errors
so i did not
to kinda force it to use xonsh
David Strobach
@laloch
@Ganesha2282882 in order for chsh to work, the desired shell must listed in /etc/shells.
CaféHaine
@cafehaine
if @Ganesha2282882 installed it with pacman it would be listed in /etc/shells
otherwise it's needed to add it manually yes
Ganesha Sharma
@Ganesha2282882
yeah, it's in there, here's my etc shells:
# Pathnames of valid login shells.
# See shells(5) for details.

/bin/sh
/bin/bash
/bin/zsh
/usr/bin/zsh
/usr/bin/git-shell
/bin/xonsh
CaféHaine
@cafehaine
did you add it manually ? I'm pretty sure the default path is /usr/bin/xonsh
well, /bin is symlinked to /usr/bin/ in arch, but still
David Strobach
@laloch
This is how the package installs: grep -x /usr/bin/xonsh /etc/shells >/dev/null || echo /usr/bin/xonsh >> /etc/shells
So yeah, it should not be the problem.
Ganesha Sharma
@Ganesha2282882
i don't think so.
find:/run/user/1000/doc’: Permission denied
find:/run/user/1000/gvfs’: Permission denied
/usr/bin/xonsh-cat
/usr/bin/xonsh
/var/cache/pacman/pkg/xonsh-0.9.24-1-any.pkg.tar.zst
from command:
sudo find / | grep xonsh --color=none | grep -v /root | grep -v /usr/lib | grep -v /home
so, it might actually be in /usr
but chsh said it's not in /etc/shells. It did not put a No such file or directory error.
Ganesha Sharma
@Ganesha2282882
i modified my shell and /etc/shells, power cycled 1 time, and it actually booted to Xonsh
*in Konsole
matrixbot
@matrixbot
gsb19 Hi all. What's the best practice of using existing virtualenvs with xonsh? (not created with vox)
SolarAquarion
@SolarAquarion
Back2Basics
@Back2Basics_twitter
@scopatz Nice xon.sh page redesign.
Anthony Scopatz
@scopatz
Thanks!
PotatoAlienOf13
@PotatoAlienOf13
quick question: where can I find the documentation for autoxsh?
ah nevermind
I found out what I was doing wrong
halloleo
@halloleo
@matrixbot @gsb19 You can create your venvs with Python's venv module (python3 -m venv DIR). Just make sure that DIR is a subdirectory in $VIRTUALENV_HOME.)Then vox will see it when you use vox --list. HTH.
matrixbot
@matrixbot

gsb19 > <@gitter_halloleo:matrix.org> @matrixbot @gsb19 You can create your venvs with Python's venv module (python3 -m venv DIR). Just make sure that DIR is a subdirectory in $VIRTUALENV_HOME.)Then vox will see it when you use vox --list. HTH.

Meaning i'll have to recreate the existing virtualenvironments, reinstall dependencies and reconfigure external references to point to the new vox repos or add symlinks in the old scripts/bin dirs to the new virtualens in $VIRTUALENV_HOME .

halloleo
@halloleo
@matrixbot @gsb19 Well, yes and no: If you want to use given venvs, you can either change $VIRTUALENV_HOME or you can switch to a venv just by using its path after vox enter ..., but then you cannot use vox's venv-list feature. Use what's appropriate in your situation.
jean laroche
@jeanlaroche
Hey people, quick question (couldn't find answer in doc): How do I reload a module in xonsh? (the module is imported in my .xonshrc)
halloleo
@halloleo

Is it a normal Python module? Then you just reload the module. Say your module is called mymod, then you can do:

import importlib
importlib.reload(mymod)

If the module is a xontrib it might need more trickery...

eggcaker
@eggcaker

Hi all, there is a way to handle the command not found ?
for example, when I enter pands , than ouput message :

~ $ pandas                                                                                                                                                                                        
xonsh: subprocess mode: command not found: pandas
Did you mean the following?
    pandoc:  Command (pandoc)

if there is a function i can import pands automatically ?

eggcaker
@eggcaker
like zsh's command_not_found_handler
anki-code
@anki-code
Hi @eggcaker! This could be handled around this line - https://github.com/xonsh/xonsh/blob/3afd5430a09d84f3ed9bad944db914977b2383b0/xonsh/procs/specs.py#L473
PRs are welcome!
halloleo
@halloleo

@eggcaker I tried to handle this situation via try...except:

try:    
    execx('unknown_command')
    print("Normal flow")
except XonshError as e:
   print("Problems running  unknown_command")

but it doesn't work. See #3701.

halloleo
@halloleo
@gforsyth Trying to tackle #3956 via git subtree add but the files end up one directory level too deep. :-( (see my comment there. What's best to do?
Aaron Meurer
@asmeurer
@scopatz I think you mentioned once that xonsh has some internal code that does a better job of dealing with subprocesses than subprocess. Are there Python APIs to access this? What exactly does it do better than subprocess?
Anthony Scopatz
@scopatz
@asmeurer - here is the pure python API: https://xon.sh/api/lib/subprocess.html
The thing it does better is piping and you can use the typed xonsh environment for managing environment variables.
anki-code
@anki-code
:new: The new concept of landing page:
xonsh-landing-anki-code-2020-11-28.png