ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 Jul 2022 13:32:51 +0200- Ubuntu on Windows cannot open notebookhttps://ask.sagemath.org/question/63135/ubuntu-on-windows-cannot-open-notebook/Hi,
I'm using WIndows 10 and just installed through WSL and Ubuntu.
I opened Ubuntu to access Sagemath notebook, via sage -n jupyter.
However, I get the following error:
Please wait while the Sage Jupyter Notebook server starts...
[I 15:11:21.972 NotebookApp] Serving notebooks from local directory: /home/vickram
[I 15:11:21.972 NotebookApp] The Jupyter Notebook is running at:
[I 15:11:21.972 NotebookApp] localhost:8888/?token=9e8a8c04e0c3550eea3a3dfd04ad638384986a542ebaeb0d
[I 15:11:21.972 NotebookApp] or 127.0.0.1:8888/?token=9e8a8c04e0c3550eea3a3dfd04ad638384986a542ebaeb0d
[I 15:11:21.972 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:11:22.193 NotebookApp]
To access the notebook, open this file in a browser:
home/vickram/.local/share/jupyter/runtime/nbserver-133-open.html
Or copy and paste one of these URLs:
localhost:8888/?token=9e8a8c04e0c3550eea3a3dfd04ad638384986a542ebaeb0d
or 127.0.0.1:8888/?token=9e8a8c04e0c3550eea3a3dfd04ad638384986a542ebaeb0d
Start : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ Start "file:///home/vickram/.local/share/jupyter/runtime/nbserver-133 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
The `nbserver-133` is not present at all in that directory.
I tried to copy one of the url in my browser, but there were no directories present even though I have sagemath notebook files on my laptop.
Can you please help?
I used a previous version of Sagemath with binary installer to create scripts with sagemath.vick2075Tue, 05 Jul 2022 13:32:51 +0200https://ask.sagemath.org/question/63135/
- windows 10 and sagehttps://ask.sagemath.org/question/62812/windows-10-and-sage/ How does one use Sage under Windows 10?
dewepMon, 13 Jun 2022 08:19:06 +0200https://ask.sagemath.org/question/62812/
- Changing terminal color on Windowshttps://ask.sagemath.org/question/61519/changing-terminal-color-on-windows/I ran the installation without admin privileges, and the Sage Console seemed to be working. But I don't like dark mode, so I was trying to find my way around to figure out how to invoke lightBG (which I thought was supposed to be the default). Not finding that easy, I was surprised to discover that no environment variables had been created or new PATH items added. Eg., I could not run sage at the command line (without a full path). So I thought that maybe I should run the installer with admin privileges and install it for everybody. Even worse! Now, on trying to start the console, bash is immediately and repeatedly complaining "could not find file /tmp".
Furthermore, still no additions to environment variables or to PATH.
I did try starting bash and issuing command "mkdir /tmp". It claims to have succeeded. But it did not help for the console. Furthermore, a second attempt is met with "file exists".
Any helpful suggestions would be appreciated.DrHowTue, 15 Mar 2022 23:02:33 +0100https://ask.sagemath.org/question/61519/
- interact does not work in jupyter labhttps://ask.sagemath.org/question/61629/interact-does-not-work-in-jupyter-lab/ I've tried every answer here and followed the URL trial, but no fix seems to make interact work in jupyter lab. Has anyone got a recent solution? It works in plain jupyter but I really like the lab.cybervigilanteSat, 26 Mar 2022 08:05:02 +0100https://ask.sagemath.org/question/61629/
- I can't get sage to run on my Windows 10 surface pro.https://ask.sagemath.org/question/60388/i-cant-get-sage-to-run-on-my-windows-10-surface-pro/ Here is what I get:
/opt/sagemath-9.3/sage: /opt/sagemath-9.3/src/bin/sage: /usr/bin/env: bad interpreter: No such file or directory
/opt/sagemath-9.3/sage: line 139: /opt/sagemath-9.3/src/bin/sage: No error
/bin/bask: Exit 126.
I have tried re-installing Sage, but to no avail.
Any help would be appreciated.ctwellman@gmail.comThu, 23 Dec 2021 01:47:12 +0100https://ask.sagemath.org/question/60388/
- LaTeX can't find file for text in plothttps://ask.sagemath.org/question/59948/latex-cant-find-file-for-text-in-plot/Apologies in advance if I've missed something obvious. I'm trying to add LaTeX text to a plot, e.g.
from matplotlib import rc
rc('text', usetex=True)
plot(x^2, legend_label=r'This is $x^2$')
and each time, I get an error message like this:
/opt/sagemath-9.3/local/lib/python3.7/site-packages/sage/repl/rich_output/display_manager.py:596: RichReprWarning: Exception in _rich_repr_ while displaying object: latex was not able to process the following string:
b'lp'
Here is the full report generated by latex:
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.10)
entering extended mode
! I can't find file `/home/sage/.sage/matplotlib-1.5.1/tex.cache/1acea6f6c115d0
ec7a634ed0529287b9.tex'.
<*> ....cache/1acea6f6c115d0ec7a634ed0529287b9.tex
Please type another input file name
! Emergency stop.
<*> ....cache/1acea6f6c115d0ec7a634ed0529287b9.tex
No pages of output.
Transcript written on texput.log.
RichReprWarning,
The file in question (1acea6f6c115d0ec7a634ed0529287b9.tex) does exist, but the path is
`/home/.sage/matplotlib-1.5.1/tex.cache/1acea6f6c115d0
ec7a634ed0529287b9.tex'
not
`/home/sage/.sage/matplotlib-1.5.1/tex.cache/1acea6f6c115d0
ec7a634ed0529287b9.tex'
For whatever it's worth, my home directory is `C:\Users\davis\` and if I copy the relevant file into the folder that LaTeX says it's looking for, and then run the same code, I get the same error message.
I'm on Windows 10 running Sage 9.3 (fresh installation this morning).xdavThu, 25 Nov 2021 10:38:33 +0100https://ask.sagemath.org/question/59948/
- sage math crashes and quits immediately after openinghttps://ask.sagemath.org/question/59741/sage-math-crashes-and-quits-immediately-after-opening/Hello All,
I installed SageMath 9.3 after disabling all firewalls and antivirus software on windows 10 and still it crashes and quits immediately after I double-click on the icons--SageMath 9.3 or SageMath 9.3 Notebook. I have Anaconda and Jupyter installed. The only things which stays open is the SageMath 9.3 Shell but that opens with a $ prompt. I am totally lost--not a computer. This is what follows when I type sage in the shell
(sage-sh) gamma@DESKTOP-MAIN:~$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.3, Release Date: 2021-05-09 │
│ Using Python 3.7.10. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
/opt/sagemath-9.3/src/bin/sage-python: line 2: 1794 Illegal instruction (core dumped) sage -python "$@"
(sage-sh) gamma@DESKTOP-MAIN:~$
Can someone please help me with very detailed instructions? Does Python 3.7.10 need to be installed?
Thanx in advance.
Goutam DasgammadasSun, 14 Nov 2021 08:30:15 +0100https://ask.sagemath.org/question/59741/
- Windows versionhttps://ask.sagemath.org/question/59329/windows-version/Hi
On the SageMath download sites, the version for W10, stops at version 9.2. while the Linux distribution SageMath version is at 9.4.
Will there always be evolutions for the Windows version ?ortolljTue, 12 Oct 2021 08:46:02 +0200https://ask.sagemath.org/question/59329/
- DeprecationWarning on SageMath 9.1 Consolehttps://ask.sagemath.org/question/53120/deprecationwarning-on-sagemath-91-console/When I open SageMath Console, it will show such a paragraph:
/opt/sagemath-9.1/local/lib/python3.7/site-packages/psutil/_pscygwin.py:311:
DeprecationWarning: invalid escape sequence \d
search = re.compile('cpu\d')
/opt/sagemath-9.1/local/lib/python3.7/site-packages/psutil/_pscygwin.py:876:
DeprecationWarning: invalid escape sequence \d
def uids(self, _uids_re=re.compile(b'Uid:\t(\d+)')):
/opt/sagemath-9.1/local/lib/python3.7/site-packages/psutil/_pscygwin.py:887:
DeprecationWarning: invalid escape sequence \d
def gids(self, _gids_re=re.compile(b'Gid:\t(\d+)')):
The operating system I use is Windows 10 1909, the SageMath I use is version 9.1.
Is this a bug?NalakuvaraThu, 20 Aug 2020 16:56:38 +0200https://ask.sagemath.org/question/53120/
- How to load .sobj files into Jupyter Notebookhttps://ask.sagemath.org/question/56331/how-to-load-sobj-files-into-jupyter-notebook/Hello! I am medium-new with Sage, and I'm trying to figure out how best to load a list across notebooks. I want to keep one notebook up and computing further entries of a list, while saving what I have so far so that I can use it in other codes. However, I can't figure out how to load .sobj files.
When I'm in a notebook, I save my file by `save(list,'list')` and I see list.sobj in my Jupyter Home directory. But I can't figure out how to load it into another notebook. I've tried `load('list.sobj')` and various iterations of `load('C:\Users\myusername\list.sobj')`but it keep getting the same error:
`'(list.sobj)' was not found in history, as a file, url, nor in the user namespace.`
What am I missing?elcardinTue, 23 Mar 2021 06:00:29 +0100https://ask.sagemath.org/question/56331/
- More system resources for SageMathhttps://ask.sagemath.org/question/56372/more-system-resources-for-sagemath/I am using SageMath under Windows 10 with the jupyter notebook in Firefox. I have installed SageMath using the Windows installer binaries.
I wonder if there are ways to improve the performance of SageMath. I mean, using more CPU and/or RAM to conclude the computations faster.tolgaThu, 25 Mar 2021 08:14:33 +0100https://ask.sagemath.org/question/56372/
- Crash when plotting in Sage in Windowshttps://ask.sagemath.org/question/55762/crash-when-plotting-in-sage-in-windows/I have recently installed SageMath in my Windows 10 PC.
Normal calculations like addition work.
But when i try to plot some functions, Sage crashes.
plot(sin(x))avinashThu, 18 Feb 2021 13:39:43 +0100https://ask.sagemath.org/question/55762/
- Jupyter notebook: plot() fails to produce graphhttps://ask.sagemath.org/question/55991/jupyter-notebook-plot-fails-to-produce-graph/ Just installed Sage on my Windows 10 machine. When I try to run plot(sin, (0.0, 10.0)), or any other plot, I only get the error message: "The kernel appears to have died. It will restart automatically." What can I do?
Thanks for your help.
BobbobmccroryTue, 02 Mar 2021 05:44:48 +0100https://ask.sagemath.org/question/55991/
- kernel dies on plothttps://ask.sagemath.org/question/55774/kernel-dies-on-plot/I have a clean installation of SageMath on Windows 10:
SageMath version 9.2, Release Date: 2020-10-24. Using Python 3.7.7.
When I try to plot anything with SageMath notebook, e.g.
P = plot(sin, (0, 10))
P
the kernel dies. This happens on Firefox and Chrome.
How can this be? Many thanks.OldMortalityFri, 19 Feb 2021 21:28:01 +0100https://ask.sagemath.org/question/55774/
- Gurobi backend problemhttps://ask.sagemath.org/question/55688/gurobi-backend-problem/Hello,
I am trying to attach gurobi backend to my sage. I downloaded gurobi and its licence, I can use it in cmd but I found no guide on how to use it with sage on Windows 10, which i am currently using. I used guide for Linux from pypi.org/project/sage-numerical-backends-gurobi/ and I tried different approaches. I decided to download gurobi in my sage shell in /opt/ folder, I exported all neccessary variables but after running *gurobi.sh* i get this error: *gurobi.sh: line 17: /opt/gurobi911/linux64//bin/python3.7: cannot execute binary file: Exec format error* Is my approach correct? How can I achieve my goal? Thanks in advance.GrabolSat, 13 Feb 2021 10:28:35 +0100https://ask.sagemath.org/question/55688/
- wsl W10 Ubuntu2004 JupyterLab future upgradehttps://ask.sagemath.org/question/55390/wsl-w10-ubuntu2004-jupyterlab-future-upgrade/HI
[Installing optional packages ](https://ask.sagemath.org/question/53294/installing-optional-packages-infinite-loop/?comment=55017#post-id-55017)
When SageMath9.3 will be released, do I wiil need to do only these commands ?
or will there be a shorter procedure
because the make will take a long time (3 hours on my old PC, and 2 hours on my new PC)
3.Download and extract the source tarball into a subfolder of your home directory
cd ~wget http://www.mirrorservice.org/sites/www.sagemath.org/src/sage-9.3.tar.gz
tar xvf sage-9.3.tar.gz
4.Start building
cd sage-9.3/
./configure
makeortolljWed, 20 Jan 2021 17:12:48 +0100https://ask.sagemath.org/question/55390/
- Use .sagews or .sws files with Sage in Windows 10https://ask.sagemath.org/question/54152/use-sagews-or-sws-files-with-sage-in-windows-10/How do you use `.sagews` or `.sws` files
(created in an older Sage or in CoCalc)
with Sage in Windows 10 on a desktop PC?fredrickmnelsonSun, 08 Nov 2020 05:13:02 +0100https://ask.sagemath.org/question/54152/
- how to install Fricas in SageMath 9.2 W10?https://ask.sagemath.org/question/54586/how-to-install-fricas-in-sagemath-92-w10/Hello
what is the good way to install Fricas Package for SageMath 9.2 notebook W10
I tried to install Fricas package in SageMath Shell with the command: `sage -i fricas`
but it looks like the installation process will never stop !.(and its impossible to stop it)
could you tell me precisely in which shell do i need to enter this command ?
![image description](/upfiles/1607356001564995.png)ortolljSun, 06 Dec 2020 16:30:11 +0100https://ask.sagemath.org/question/54586/
- How does one use Sage under Windows 10?https://ask.sagemath.org/question/54166/how-does-one-use-sage-under-windows-10/ How does one use Sage under Windows 10?fredrickmnelsonSun, 08 Nov 2020 22:20:51 +0100https://ask.sagemath.org/question/54166/
- Use of threejs and jmol in sage 9.1 for windowshttps://ask.sagemath.org/question/53861/use-of-threejs-and-jmol-in-sage-91-for-windows/ I have been using SageMath 9.1 in Ubuntu 18.04 and the performance is excellent -- no questions asked.
Now I am trying to use SageMath 9.1 in a Msc level course, but the students' computers are all under Windows 10, and so on the classroom computer I have installed the latest 64 version of SageMath 9.1(with the 3 icons in the desktop, including the Jupyter NB which is the environment I always use). Using it, 3D scenes can only be seen as still images using "viewer='tachyon'". When using "viewer='jmol'" or "viewer='threejs'",there is no error message a scene is created, but it is empty -- blank space, no image. It seems that threejs and jmol are bundled in the repo for the Windows version of SageMath but for some reasons do not work.
In Windows 10 I have anaconda3 installed with Python 3 environment and Jupyter NB. Using it, I have tried to install Sagemath 9.1 from conda-forge using 'conda' (insluding conda-forge as a channel, with and without 'mamba' -- according to the respective instructions in the Sage manual for installing sage from anaconda) and this worked well in Ubuntu but not in Windows 10 -- in the latter case I get error message on the anaconda prompt:
Encountered problems while solving.
Problem: nothing provides requested sage
I have now also installed node.js and npm and, via the latter, also three.js . However, the installed SageMath does not recognize this version, and I do not know how to import it in the installed SageMath 9.1.
As a last measure, I have also installed the latest 64 version of Java and the latest 64 version of jmol (to be used via double-click on jmol.jar in the decompressed jmol bundle). The problem is similar as with threejs: the SageMath 9.1 does not recognize the installed jmol, and I do not know how to make it do so.
This is the situation. Can you help resolve this? I need to be able to use at least one of threejs and/or jmol (preferably, threejs!!) as alternative to tachyon in visualizing 3D scenes. Otherwise, I will have to radically restructure the course without using SageMath, since using Linux instead of Windows is, unfortunately, not an option. ShaolinuxMon, 12 Oct 2020 13:35:15 +0200https://ask.sagemath.org/question/53861/
- Displaying result problemhttps://ask.sagemath.org/question/53208/displaying-result-problem/The results of the following code is perfectly displayed in QSagemath server but not in v 9.1 under windows 10
%display latex
A=[0.8,0.44],[0.05,0.1],[0.1,0.36]
b=(24000,2000,6000)
c=(108.21,72.522)
P=InteractiveLPProblemStandardForm(A,b,c,["x_1","x_2"],slack_variables=["e_3","e_4","e_5"])
P = P.standard_form()
P.run_simplex_method()
P = P.standard_form()
P.run_simplex_method()CyrilleFri, 28 Aug 2020 17:20:43 +0200https://ask.sagemath.org/question/53208/
- Using ? for help in version 9.1https://ask.sagemath.org/question/53086/using-for-help-in-version-91/The use of a question mark (`?`) for help produces several deprecation warnings:
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/models.py:847: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/api.py:67: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/api.py:80: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/api.py:93: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/api.py:108: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/api.py:122: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/api.py:136: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/api.py:148: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/sessions.py:498: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/sessions.py:509: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/sessions.py:520: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/sessions.py:533: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/sessions.py:544: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/sessions.py:555: DeprecationWarning: invalid escape sequence \*
"""
/opt/sagemath-9.1/local/lib/python3.7/site-packages/requests/sessions.py:565: DeprecationWarning: invalid escape sequence \*
"""
Am I doing something wrong?julesbesacMon, 17 Aug 2020 12:15:07 +0200https://ask.sagemath.org/question/53086/
- Configuring an arara rule of sagetex on Windows 10https://ask.sagemath.org/question/52840/configuring-an-arara-rule-of-sagetex-on-windows-10/ This question has been cross-posted on tex.sx here https://tex[dot]stackexchange[dot]com/q/557131/2288.
----------
When using the following `sagetex.yaml` arara rule
!config
# SageTeX-Rule for arara.
identifier: sagetex
name: SageTeX
authors:
- TeXnician (Author)
- cis (Idea)
arguments: []
commands:
- name: A SageTeX Rule for arara
command: >
@{
pathToBashExecutive = "C:\\Program Files\\SageMath 9.1\\runtime\\bin\\bash";
pathToSageStartfile = "C:/Program Files/SageMath 9.1/runtime/opt/sagemath-9.1/sage";
pathOfCurrentWorkingFolder = currentFile().getParent();
theWindowsCommand = getCommand(pathToBashExecutive, "-l", pathToSageStartfile, "-c", "os.chdir('" + pathOfCurrentWorkingFolder + "'); load('" + getBasename(currentFile()) + ".sagetex.sage')");
return isWindows(theWindowsCommand, getCommand("sage", getBasename(reference) + ".sagetex.sage"));
}
to compile the following document
% arara: lualatex
% arara: sagetex
% arara: lualatex
\documentclass{article}
\usepackage{sagetex}
\begin{document}
Using Sage\TeX, one can use Sage to compute things and put them into your \LaTeX{} document. For example, there are
$\sage{number_of_partitions(1269)}$ integer partitions of $1269$.
You don't need to compute the number yourself, or even cut and paste it from somewhere.
Here's some Sage code:
\begin{sageblock}
f(x) = exp(x) * sin(2*x)
\end{sageblock}
The second derivative of $f$ is
\[
\frac{\mathrm{d}^{2}}{\mathrm{d}x^{2}} \sage{f(x)} =
\sage{diff(f, x, 2)(x)}.
\]
Here's a plot of $f$ from $-1$ to $1$:
\sageplot{plot(f, -1, 1)}
\end{document}
I get this error
> SyntaxError: (unicode error)
> 'unicodeescape' codec can't decode
> bytes in position 2-3: truncated
> \UXXXXXXXX escape
So, what should be changed in both the arara rule and, consequently, the following command to make everything work?
"C:\Program Files\SageMath 9.1\runtime\bin\bash" -l "C:/Program Files/SageMath 9.1/runtime/opt/sagemath-9.1/sage" -c "os.chdir('C:\Users\Diaa\Desktop\Test'); load('testsagetex.sagetex.sage')"DiaaMon, 03 Aug 2020 23:10:57 +0200https://ask.sagemath.org/question/52840/
- Updating Sage in Windows 10https://ask.sagemath.org/question/46958/updating-sage-in-windows-10/ The [Sage Installation Guide Release 8.7](http://doc.sagemath.org/pdf/en/installation/installation.pdf) seems to assume that one installs Sage in Windows using Cygwin, in particular regarding upgrading. However, I installed Sage on Windows 10 from the bin files without installing Cygwin at all. How should I update both Sage and the packages?
I favour an easy way that does not make me uninstall-reinstall.Jesus Martinez GarciaThu, 20 Jun 2019 17:24:07 +0200https://ask.sagemath.org/question/46958/
- inline help feature not working on jupyter notebookhttps://ask.sagemath.org/question/52746/inline-help-feature-not-working-on-jupyter-notebook/In prior Sage things that I've used, to get help with a particular function, say `matrix`, I would type `matrix?` then hit tab. However, this isn't working for me in the Jupyter notebook. avi.steinerWed, 29 Jul 2020 18:47:26 +0200https://ask.sagemath.org/question/52746/
- Sage on Windows 10 becomes corrupthttps://ask.sagemath.org/question/52394/sage-on-windows-10-becomes-corrupt/Since yesterday, I have the following problem : my notebooks cannot be connected to Sage. I have completely erased Sage and Python of my computer and then reinstalled them. So I work, under Windows 10, with the last version of both of it. For a short moment it seems to work but the the problem reappears. Has any body experimented such a weird comportment which may be due to windows ?
Here is an image of the error prompted by the notebook Server
![image description](/upfiles/1594304284310490.png)
I would add that, when I click on the icone Sagemath, a consol opens and closes ilmmediately and that Python is perfectly installed and works.CyrilleThu, 09 Jul 2020 16:13:58 +0200https://ask.sagemath.org/question/52394/
- Multiprocess hangshttps://ask.sagemath.org/question/51139/multiprocess-hangs/I am using SageMath 9.0 on Windows 10 (in admin mode) and following this [example](https://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Notebooks/SM_black_hole_rendering.ipynb).
Everything runs fine until `In [43]` where the progress bar appears but stops 1/4 through and hangs. I can see some Python processes running in the background (via the Task Manager) and the CPU and memory usage reaches 80% continuously. If left for an hour, nothing happens until I kill all processes and restart.
Anyone has encountered the same issue and has a fix?ZeJibeWed, 29 Apr 2020 12:29:09 +0200https://ask.sagemath.org/question/51139/
- How to add extensions to Jupyter?https://ask.sagemath.org/question/51101/how-to-add-extensions-to-jupyter/Hi,
One can add extensions to Jupyter, as explained on the
[jupyter-contrib-nbextensions installation page](https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html),
for instance with the instruction:
pip install jupyter_contrib_nbextensions
But this instruction does not work using the SageMath 9.0 Shell (in Windows)... Any idea what to do?
RolandrolandTue, 28 Apr 2020 14:03:35 +0200https://ask.sagemath.org/question/51101/
- Problem with %attach for SageMath 9.0 on Windows 10 with .spyx fileshttps://ask.sagemath.org/question/44176/problem-with-attach-for-sagemath-90-on-windows-10-with-spyx-files/> EDIT (01/02/2020) on version 9.0.
Consider a source code reduced to the following line:
# %attach SAGE/AttachTest.spyx
When I attach it the first time, it is OK, but if I **save again** the source code, there is the following problem (which appears from version 8.3 or less). How to fix this problem?
Note that this problem is specific to .spyx files, as everything works well for .sage files.
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.0, Release Date: 2020-01-01 │
│ Using Python 3.7.3. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage: %attach SAGE/AttachTest.spyx
Compiling ./SAGE/AttachTest.spyx...
sage: 0 [main] python3.7 1214 child_info_fork::abort: unable to map \??\C:\Users\SÃ©bastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_A
ttachTest_spyx_0.dll (using C:\Users\SÃ©bastien Palcoux\.sage\temp\LAPTOP-7O5QV19T\1192\spyx\_home_sage_SAGE_AttachTest_spyx\_home_sage_SAGE_AttachTest_spyx_0.dll), Win32 error 126
### reloading attached file AttachTest.spyx modified at 05:48:32 ###
Compiling /home/sage/SAGE/AttachTest.spyx...
---------------------------------------------------------------------------
BlockingIOError Traceback (most recent call last)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
59 try:
---> 60 return func(*args, **kwargs)
61 except OSError as e:
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _query(package, *options)
69 cmd = '{0} {1} {2}'.format(pkg_config_exe, ' '.join(options), package)
---> 70 proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE)
71 out, err = proc.communicate()
/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
774 errread, errwrite,
--> 775 restore_signals, start_new_session)
776 except:
/opt/sagemath-9.0/local/lib/python3.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1452 errpipe_read, errpipe_write,
-> 1453 restore_signals, start_new_session, preexec_fn)
1454 self._child_created = True
BlockingIOError: [Errno 11] Resource temporarily unavailable
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
<ipython-input-2-7b41dee30a81> in <module>()
----> 1 sage.repl.load.load(sage.repl.load.base64.b64decode("L2hvbWUvc2FnZS9TQUdFL0F0dGFjaFRlc3Quc3B5eA=="),globals(),True)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load(filename, globals, attach)
274 if attach:
275 add_attached_file(fpath)
--> 276 exec(load_cython(fpath), globals)
277 elif ext == '.f' or ext == '.f90':
278 from sage.misc.inline_fortran import fortran
/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/load.py in load_cython(name)
65 """
66 from sage.misc.cython import cython
---> 67 mod, dir = cython(name, compile_message=True, use_cache=True)
68 import sys
69 sys.path.append(dir)
/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/misc/cython.py in cython(filename, verbose, compile_message, use_cache, create_local_c_file, annotate, sage_namespace, create_local_so_file)
324 try:
325 ext, = cythonize([ext],
--> 326 aliases=cython_aliases(),
327 include_path=includes,
328 compiler_directives=directives,
/opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/env.py in cython_aliases()
392 for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular']:
393 var = lib.upper().replace("-", "") + "_"
--> 394 aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
395 pc = pkgconfig.parse(lib)
396 # INCDIR should be redundant because the -I options are also
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in cflags(package)
106 If ``pkg-config`` not on path, raises ``EnvironmentError``.
107 """
--> 108 return _query(package, '--cflags')
109
110
/opt/sagemath-9.0/local/lib/python3.7/site-packages/pkgconfig/pkgconfig.py in _wrapper(*args, **kwargs)
60 return func(*args, **kwargs)
61 except OSError as e:
---> 62 raise EnvironmentError("pkg-config is probably not installed. Could not run pkg-config: %r"%e)
63 return _wrapper
64
OSError: pkg-config is probably not installed. Could not run pkg-config: BlockingIOError(11, 'Resource temporarily unavailable')
sage:Sébastien PalcouxSat, 03 Nov 2018 20:27:46 +0100https://ask.sagemath.org/question/44176/
- Sage 9.0 - Windows 10 - matplotlib failurehttps://ask.sagemath.org/question/49686/sage-90-windows-10-matplotlib-failure/ I've just installed Sage 9.0 on Windows 10. It's generally working except for one thing:
When I `import matplotlib.pyplot as plt`, i get the following error:
Matplotlib is building the font cache using fc-list. This may take a moment.
This never goes away. rickroeslerMon, 27 Jan 2020 05:35:50 +0100https://ask.sagemath.org/question/49686/