-
Notifications
You must be signed in to change notification settings - Fork 17
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
xonsh Kernel #274
Comments
I installed
I do not see a xonsh kernel in jupyter. What did I do wrong? |
If
Let me know if it works. |
Hi BoPeng, for info - I do see calysto_xonsh kernel in jupyter ( its a vanilla pipenv install of jupyterlab (no SoS installed yet), but it throws errors if they are used
both jupyterlab and ipython recognise the calysto_xonsh but they both throw an errors output from jupyterlab and ipython below
more complete output below
|
Hi BoPeng
xonsh runs all python commands and it can also run most bash type commands Many thanks for you help |
Instead of
I used
which somehow worked and installed a python3 kernel. This might be a bug with |
The kernel does not work on mac with python 3.7,
|
@WardThomas Let me know how to fix (sos) [bpeng1@BCBMF5KWK0F8F69:~/sos/sos-python (master *)]$ git diff
diff --git a/src/sos_python/kernel.py b/src/sos_python/kernel.py
index f299059..0374a2e 100644
--- a/src/sos_python/kernel.py
+++ b/src/sos_python/kernel.py
@@ -119,8 +119,8 @@ def __preview_var(item):
class sos_Python:
- supported_kernels = {'Python3': ['python3'], 'Python2': ['python2']}
- background_color = {'Python2': '#FFF177', 'Python3': '#FFD91A'}
+ supported_kernels = {'Python3': ['python3'], 'Python2': ['python2'], 'Xonsh': ['calysto_xonsh']}
+ background_color = {'Python2': '#FFF177', 'Python3': '#FFD91A', 'Xonsh': 'red'}
options = {
'variable_pattern': r'^\s*[_A-Za-z0-9\.]+\s*$',
'assignment_pattern': r'^\s*([_A-Za-z0-9\.]+)\s*=.*$', |
Submitted a bug report to upstream Calysto/xonsh_kernel#13 |
Hello BoPeng, thanks for following that up I have manged to get the Calysto/xonsh_kernel to work with Jupyter lab - see post on the Calysto git thread which you started I then followed your instructions to install SoS and calysto_xonsh works as an SoS sub kernel I am not familair with SoS yet so I can't test if data exchange etc works, |
Hello BoPeng, I think data exchange doesn't work yet -see screenshot below but next week I can try to modify the SoS kernel as you suggested.
do you think they will need updating as well? |
Did you run
to specify language? As I have suggested in another thread, it is better for you to submit a PR to fix |
Hi BoPeng Did you run
Yes I will try but I don't even now what "submit a PR", I will work it out but it will take a while before I have the time - don't hold your breath - probably next week regards Thomas |
@WardThomas I am closing this ticket since the upstream has not been fixed. I will re-open this ticket if Calysto/xonsh_kernel#13 is fixed. |
Hello Bo Peng, thanks for sharing Sos.
Would it be possible to add Xonsh as an SoS sub kernel?
I see you use the metakernel/Calysto bash as a base for your bash sub kernel and that there is a metakernel/Calysto xonsh as well, so maybe it would be fairly easy to add xonsh?
https://nbviewer.jupyter.org/github/Calysto/xonsh_kernel/tree/master/
regards
The text was updated successfully, but these errors were encountered: