-
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
R Doesn't Seem To Work With SoS notebooks However, It Does Work In R Markdown #341
Comments
This is a compatibility bug (with Python 3.8 or something) that has been fixed last year. Could you update your version of sos related pacakges? |
I am running sos 0.23.4 for Python 3.10.10 and my version of python is 3.10.8. |
What about your version of sos-notebook? |
When I run
it tells me: sos 0.23.4 for Python 3.10.10 |
I meant
|
The code you mentioned:
generates the following output:
|
Ok, this looks like a problem with |
I tried to update sos-r using the following command:
then I opened up SoS and tried to run one R command:
and I kept getting the following error:
I ran the following command to know the versions:
and got the following:
|
Let me update the docker release of sos-notebook so that we can try to reproduce the problem or compare the versions there. |
ok, I updated to the latest versions of the jupyter tool stack with python 3.10 and can reproduce your problem. I cannot yet figure out what has caused it though. |
It seems that in Python 3.10 |
That has been fixed, but the async issue arises again. Looks like some upstream package enhanced async support. |
Downgrading
I think what is happening is ipython/ipykernel@aefef5d Namely the upstream has used native reply_content = self.do_execute(
code, silent, store_history,
user_expressions, allow_stdin,
)
if inspect.isawaitable(reply_content):
reply_content = await reply_content accept pure |
When I try
it says
I believe the notebook must be under version 8.x.x in this case? Just in case I did
and then started a new Jupyter notebooks session. I tried using R markdown and types in
It still seems to not work. |
You need to downgrade However, I am working on a new version of |
I did the following I updated the notebooks. Then I did:
however, it does not change that I get the following error in SoS and not in R Markdown:
|
I have released sos-notebook 0.24.0, sos-r 0.20.0, sos-python 0.20.0 etc. Basically all language modules need to be upgraded with the update of sos-notebook, which now depends on jupyter-client >= 8.0.0. Please let me know if you notice any problem with this release. |
I did a clean install of SoS. I then did the following command to see:
I got the following:
I checked R markdown and SoS and both worked for the |
@BoPeng we are still having an issue when we install sos-notebook from conda-forge. Turns out we may need to update the recipe: Here it still says juptyer_client > 7. We need to make it >8.0.0. Also perhaps sos>0.19.0? (there maybe a few other sos-notebook problems that we will try to better understand, organize and post, so later we can fix and release a new version -- please expect our other follow ups!) |
It can be a good time to fix this with the new release (for #349), |
It seems that I am having an issue running R 4.2.2 on the SoS notebook but it works fine in an R markdown file. I am working on an HPC (runs Linux) and using a Mac Air.
I wrote the following command:
sessionInfo()
Then I got the subsequent error:
"cannot import name 'Sequence' from 'collections' (/home/yr2446/miniconda3/lib/python3.10/collections/__init__.py)"
I tried the following solution R Issues StackOverflow where I ran the following:
pip install -U mkdoc
however this issue persists. Is there anything I can do to resolve this issue so that I can use R in a SoS notebook?
The text was updated successfully, but these errors were encountered: