Create icon for SageMath on Mac - sage

I have installed sagemath on my macbook (10.15.7) and I don't want to run sagemath via Terminal. So I was wondering whether I could create an icon so that I can launch it via Launchpad. If that is possible, could you please tell me how to do that? Thank you very much.

Try the new SageMath app for macOS, currently in beta-testing:
Sage-macOS home: https://github.com/3-manifolds/Sage_macOS
releases: https://github.com/3-manifolds/Sage_macOS/releases

Related

Sage refuses to open any Jupyter notebook even though Anaconda is installed

I have installed Sage using the latest installer and I can open a Sage terminal (by clicking on it from the start menu...not by entering 'sage' in Windows command line).
I have then installed Anaconda. I can enter 'python' in Windows command line and it works. But the puzzling part is jupyter notebooks. By my understanding, it comes with Anaconda so, I should be able to open my Sage console and type some version of 'n jupyter' or 'njupyter' or '-n jupyter' etc to get a sage Jupyter notebook running.
This is NOT happening at all. Instead I get
Edit: I would like to get Sage to open a Jupyter notebook on my computer but the commands I tried (in the screenshot provided) just keep failing. I got a version of these commands from the Sage tutorial itself and still, it doesn't work.
Any suggestions on how to get this working are much appreciated.
The Sage-Windows installer installs three shortcuts for you:
"SageMath x.y" -- to use SageMath in the (Cygwin) command line
"SageMath x.y Notebook" -- to use SageMath in Jupyter
"SageMath x.y shell" -- to access a Cygwin terminal where Sage has not been started
Have you tried using the "SageMath 9.3 Notebook" shortcut?
See a guide at
https://wiki.sagemath.org/SageWindows

Jupyter notebooks with rstudio-server open source

Is it possible to use Jupyter notebooks with the open source version of rstudio-server? I was unable to find any documentation regarding this except for this link which talks about rstudio-server pro.
https://docs.rstudio.com/ide/server-pro/1.2.5001-3/jupyter-sessions.html
Please point me to a link if anybody has already implemented this.
Thanks in advance.
It is not possible to use Jupyter Notebooks in the Open Source version of RStudio Server. This is a feature that requires RStudio Launcher and it and requires RStudio Server Pro.
It's possible to try RStudio Server Pro for 45 days, with no strings attached.
You can just follow the docs to start your trial:
https://docs.rstudio.com/rsp/installation/
https://docs.rstudio.com/rsp/integration/jupyter-standalone/
If you are looking for other OSS options you can take a look at JupyterHub and how it supports RStudio IDE inside their architecture.
(Disclaimer I work for RStudio)
I don't believe Jupyter has current implementation for running inside of R Studio Community.

What can I change if the turtle-code logs me out of python 3 Jupyter?

If I run this Code on Python3 (Anaconda Jupyter 6.0.0) I'm getting logged out automatically. I use a Mac with macOS Mojave.
The code is from the book "How to think like a Computer Scientist". So I'm at the beginning to learn some python.
I already tried to delete the turtle.py files in the library, but it didn't work either.
import turtle
window = turtle.Screen()
alex = turtle.Turtle()
alex.forward(50)
alex.left(90)
alex.forward(30)
window.mainloop()
When I run the code I get logged out. When I log in again, Jupyter just shows a window with "error".
This is more a by-pass than an answer as I am still trying to figure it out myself. I have a macbook and am experiencing the same behavior with PyCharm and Anaconda.
If you want to learn python, the code above runs fine if you instead install the base python interpreter from https://www.python.org/. It includes the turtle module and you can change it in your IDE so that this new interpreter is the default rather than Anaconda. If I figure it out what is happening with Anaconda before someone else, I will let you know.

How to set default theme in unix command-line

I have decided to learn bash. I am using a mac.
In terminal (built in mac version of unix command line) is there a way to set the default theme to homebrew or other? thank you!
Open the Preferences panel of the terminal application, select the Themes tab, choose Homebrew and click on default.

RStudio is blank when opened

I have just installed the latest versions of R (3.1.0) and Rstudio (v0.98.507) on a Windows 7 machine, 64 bit.
The R GUI works OK, but when I open the RStudio.exe only a blank window opens. I've tried re-installing R and RStudio.
Any suggestions?
By choosing the R version I wanted to use I was able to use Rstudio again.
To choose the R version you want to use with Rstudio do the following;
Click the CTRL key (don't let go)
Click on the Rstudio icon
Choose the version you want in the pop-up window.
For Ubuntu users where #neal's solution doesn't work.
$ rstudio --no-sandbox
related to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468
Download the 64bit version and reinstall it.
The same for Linux
FOR LINUX: this happens to me on cloud instances. A solution is forcing software rendering of RStudio. You need to start RStudio, get to the black screen, close Rstudio black screen, do my solution below in the terminal with Rstudio closed, then start Rstudio again.
In terminal:
sudo nano ~/.config/RStudio/desktop.ini
APPEND THE FOLLWING TO [General] section (leave whatever is there and add the line below):
[General]
desktop.renderingEngine=software
Again this is for Linux, but there may be a similar issue in Windows and you may be able to force software rendering.
Press down Ctrl key and then click on RStudio icon to launch. A dialog box asks you about the R version. Choose the one that actually exists (you might see an R version which does not exist; confusing RStudio)
For Windows10 64bit.
After following the hold Ctrl and clicking RStudio icon.
Change the Rendering Engine: to Software.
This fixed the problem on my machine.

Resources