I enter the following code
var('y')
f(y) = matrix([y])
f(0)
both in yupyter notebook, and then in sage cell, and it seems there is a bug with defining matrix function in yupyter notebook.
code in yupyter notebook, does not work well
While the same code is entered in sage cell, everything works perfect.
How to resolve the issue in the yupyter notebook?
Thank you.
code in sage cell, works properly
SageMathCell is running SageMath 9.5, the newest version. Your Jupyter notebook is running version 9.3. Version 9.5 introduces new functionality for SageMath symbolic expressions relating to matrices and vectors, see here for more:
https://wiki.sagemath.org/ReleaseTours/sage-9.5#Changes_to_symbolic_expressions
To solve your problem, you need to update your Jupyter notebooks kernel to SageMath 9.5
Related
I am currently using R (RGui; R version 4.2.1). I use 'find' and 'replace' in R Editor a lot. Recently, both will only work for one character. So I can find 'a' but it won't find any instances of 'aaa' even if I know they exist. I'd be really happy if anyone can suggest a solution as it's driving me crazy. Thanks!
This was recently fixed in Rgui for Windows. I am using "R version 4.2.1 Patched (2022-09-28 r82941 ucrt)" and it works (using ctrl-h or the Edit menu in the Rgui R Editor).
In the BUG FIXES on Windows subsection within the section CHANGES IN R 4.2.1 patched of https://cran.r-project.org/doc/manuals/r-devel/NEWS.html it says:
Find and replace operations work again in the script editor in Rgui on Windows.
Same problem - with R 4.2.1 I cannot find and replace using the R editor. I had to close the script up and do it in .txt.
I have the same issue. R version 4.2.1 on Windows 10. It doesn't find anything I search for, even if I can see it right there on the screen. Not even single-character strings. I was editing a non-R file.
I am using Julia.
I am trying to get some greek characters in Jupyter notebooks.
First I downloaded the latest version of Julia 1.6.2
For the jupyter connection I used anaconda, in julia repl i put ] add IJulia, and then I could chose the Julia kernel in Jupyter.
Then a friend suggested to download vs code (since we got a problem in the working directory with jupyter-anaconda)
In VS code we got no problem with working directories. And to work with notebooks we installed the Jupyter extension. It was working very well, but we got to this problem that we cannot get greek characters.
In Jupyter (anaconda) I could easily put greek characters, like this:
no package needed, nothing, just like that.
However in VSCode I cannot get that, nor "predictive text" or coding suggestions:
Any tips on how to solve this?
Like we are preferring VS Code and we know there's a way to get the greek characters on it, but we don't know how.
Any help is very welcomed.
Thanks in advance.
Check out the docs for the Julia extension in VS code here: https://code.visualstudio.com/docs/languages/julia. Per the comments above, make sure this is installed and you have the Julia kernel selected. You should then see the following:
I am using View() in Jupyter notebook, but it gives me errors:
Error in View(states): ‘View()’ not yet supported in the Jupyter R kernel. Is there anyway to fix this?
View() is really not supported in the Jupyter R kernel yet. You can track that at GitHub Issue #280 and see that in the source code of environment_shadow.r.
Instead, feel free to just use print(), head(), or maybe cat() according to your needs.
I'm a Python beginner and recently came across the Atom editor and the package Hydrogen, that implements the Jupyter notebook. I did so after realizing that running the notebook in Chrome consumed way too many resources and also seemed to be a bit slower.
However, the Atom editor and Hydrogen always output prints within a little frame in the code (see image). Unfortunately, it doesn't use the full window width. I also don't see any console/terminal for installing pip libraries.
Is there a way to have the output in a console below the code, just as in Jupyter, and to have a terminal?
this comes most certainly too late, but in case someone else searches for this:
hit control+shift+P / cmd+shift+P and type "toggle output area".
Simple question, but I can't find an answer for R. I found it for Python, but I didn't test it.
When I put to input line of the notebook: setOption(encoding = "Windows-1250") nothing exactly happens. I know (from Python review) I should save it to environment somehow, but how? I created Jupyter Notebook (my first time) from Anaconda by launching button, previously installed all dependencies. Everything's ok (Windows 7).
It's a problem with plotting my locale characters in plots. And maybe, I should encode my characters directly to unicode notation? Like: u003d? But it's time consuming. Any suggestions?