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.Fri, 10 Apr 2020 15:12:00 +0200LSP (Language Server Protocol) support for SageMathhttps://ask.sagemath.org/question/50654/lsp-language-server-protocol-support-for-sagemath/There are plenty kind of language servers for Python: [LSP](https://langserver.org/) ([palantir](https://github.com/palantir/python-language-server), [sourcegraph](https://github.com/sourcegraph/python-langserver), [microsoft](https://github.com/Microsoft/python-language-server)), [jedi](https://github.com/davidhalter/jedi), [rope](https://github.com/python-rope/rope) and etc.
> The Language Server protocol is used between a tool (the client) and a
> language smartness provider (the
> server) to integrate features like
> auto complete, go to definition, find
> all references and alike into the tool
There are a lot of editors (almost any) and IDE with support of that kind of language servers.
Question is: are there some adaptations of that solutions to SageMath (which is heavily based on Python and translated to Python)? Or may be some standalone solution for SageMath?
P.S. It is looked as there is evidence of [some success with jedi-vim](https://github.com/davidhalter/jedi-vim/issues/262), but I cannot reproduce it at the moment.petRUShkaFri, 10 Apr 2020 15:12:00 +0200https://ask.sagemath.org/question/50654/Using Pydev (eclipse) and Sage?https://ask.sagemath.org/question/8238/using-pydev-eclipse-and-sage/Hi,
I've been googling around to find a way to set up pydev and sage, and
have had nothing but the worst of luck.
sage 4.7 is located in /home/steven/sage-4.7, and I've created a
"sage_python" python interpreter who's location is "/home/steven/sage-4.7/local/bin/python".
I've set the following environment variables:
SAGE_ROOT = /home/steven/sage-4.7
LD_LIBRARY_PATH = $SAGE_ROOT/local/lib
Now, when I run the following script (test.py):
#!/usr/bin/env sage -python
import sys
from sage.all import *
print 2
When I run the script with sage_python as the interpreter I get the
following error:
> Traceback (most recent call last):
> File
> "/home/steven/code/whateva/test.py",
> line 4, in <module>
> from sage.all import *
> File "/home/steven/sage-4.7/local/lib/python2.6/site-packages/sage/
> all.py", line 70, in <module>
> from sage.ext.c_lib import _init_csage, sig_on_count
>
> ImportError: libcsage.so: cannot open
> shared object file: No such file or
> directorydirectory
Can anyone help me out with this?
Thanks,
Steven
p.s. I've noticed [this](http://groups.google.com/group/sage- support/browse_thread/thread/1d33ecb0830a307c) post on the sage support google groups, but even when I open
eclipse via
$ sage -sh
$ eclipse &
I get the same error.StevenPollackWed, 20 Jul 2011 13:15:02 +0200https://ask.sagemath.org/question/8238/Using PyDev (eclipse) and Sage (on Virtual Box) on Windows 7?https://ask.sagemath.org/question/9521/using-pydev-eclipse-and-sage-on-virtual-box-on-windows-7/Hi there,
I am asking an old question (http://ask.sagemath.org/question/668/using-pydev-eclipse-and-sage) with a different flavour. I need to write a long sage project. I use Windows 7, Eclipse (pyDev) under Windows 7 for my python programming and I have sage 4.8 installed on Windows 7 via a VM Virtual Box. Also, I know very little of Linux.
I wonder if it is possible to write a sage project on Eclipse (pyDev) under Windows 7 using the sage interpreter (and commands, etc). To begin with, I can't even find the location where the sage 4.8 folder is on my laptop, so I can't follow any of the instructions available on the web.
I would appreciate any help in this regard as I have spent a lot of time googling an asnwer.
Thanks, and cheers,
Guillermo
Guillermo Pineda-VillavicencioSat, 10 Nov 2012 23:49:29 +0100https://ask.sagemath.org/question/9521/graphing ODE's using euler's methodhttps://ask.sagemath.org/question/9602/graphing-odes-using-eulers-method/Im trying to plot a graph based on the change in susceptible, exposed and infected people due to guinea worm, included is a plot of the worm population W. This is an attempt to at least replicate some of what is from this mathematical model
(http://mysite.science.uottawa.ca/rsmith43/GuineaWorm.pdf ),
hopefully using the Impulsive differential equations but right now I've been relentlessly trying to graph these equations on a reasonable axis over ten years but for some reason it doesn't. Plus the y axis is completely off from what it should be, does anyone know what is wrong with the code? Thanks for any responses
timedata=[]
Sdata=[]
Edata=[]
Idata=[]
Wdata=[]
t=0
S=2600
E=1
I=1
W=200
bR= 37
k= 8760
m= .0142
r= .9
B= .0255*(1/W)
A= 1
Y=100000
mW=26
dt=.1
timedata.append(t)
Sdata.append(S)
Edata.append(E)
Idata.append(I)
Wdata.append(W)
T=10
Tfinal=(T/dt)
for i in range(0,Tfinal):
t= t+dt
Sprime=bR-B*S*W-m*S+k*I
Eprime=B*S*W-A*E-m*E
Iprime=A*E-k*I-m*I
Wprime=Y*I-mW*W
S= S+(Sprime*dt)
E= E+(Eprime*dt)
I= I+(Iprime*dt)
W= W+(Wprime*dt)
timedata.append(t)
Sdata.append(S)
Edata.append(E)
Idata.append(I)
Wdata.append(W)
Splot=list_plot(zip(timedata,Sdata),color='green',plotjoined=True)
Eplot=list_plot(zip(timedata,Edata),color='orange',plotjoined=True)
Iplot=list_plot(zip(timedata,Idata),color='black',plotjoined=True)
SplotrmmrWed, 05 Dec 2012 21:59:18 +0100https://ask.sagemath.org/question/9602/Using Psycopg2 and other libraries in sagehttps://ask.sagemath.org/question/8812/using-psycopg2-and-other-libraries-in-sage/Hi,
Seems like a simple question but have not found a good answer. Best way to use outside python libraries in SAGE in Ubuntu. Install in SAGE foulder if so (how?). Link in an IDE. I know how to do this in Pydev.
Thanks,
Matthewmcm3Thu, 22 Mar 2012 02:20:21 +0100https://ask.sagemath.org/question/8812/highlighting the code in notebookhttps://ask.sagemath.org/question/7871/highlighting-the-code-in-notebook/I wonder if there is any way to highlight the code (things like "def" "for") in the notebook.
I have found some informations about the css fileused by notebook but maybe someone could describe me the way if there is one.
Thanks.stanislavSat, 15 Jan 2011 11:12:42 +0100https://ask.sagemath.org/question/7871/What should the features of a Sage Notebook IDE be?https://ask.sagemath.org/question/7588/what-should-the-features-of-a-sage-notebook-ide-be/Should users be able to full Sage development entirely from the notebook and Trac?timothyclemansThu, 19 Aug 2010 13:28:34 +0200https://ask.sagemath.org/question/7588/