#19851: Interpreter cell magics in Jupyter
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-7.0
Component: interfaces | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/interpreter_cell_magics_in_jupyter|
6f7176f3f9981af65af8fbb4724def5f9bae6d6e
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by charpent):
* status: needs_review => needs_work
Comment:
First test (very quick and shallow) on commit
6f7176f3f9981af65af8fbb4724def5f9bae6d6e
* Builds OK.
* Passes ptestlong with no errors.
* R : data and stats OK, no plots (source below)
{{{
Data<-local({
X<-runif(10)
Y<-2*X-1+rnorm(10)
data.frame(x=X,y=Y)
})
head(Data)
plot(y~x, data=Data)
S1<-summary(L1<-lm(y~x, data=Data))
print(S1)
plot(L1)
}}}
results in
{{{
x y
1 0.2943037 0.06621474
2 0.2520061 0.97987155
3 0.4929616 0.47385825
4 0.1050128 -1.62524235
5 0.7823369 -1.06413236
6 0.9354440 1.77307782
Call:
lm(formula = y ~ x, data = Data)
Residuals:
Min 1Q Median 3Q Max
-1.6952 -0.5936 0.2779 0.5892 1.3699
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -0.8753 0.5639 -1.552 0.159
x 1.9255 1.1063 1.740 0.120
Residual standard error: 0.9891 on 8 degrees of freedom
Multiple R-squared: 0.2746, Adjusted R-squared: 0.184
F-statistic: 3.029 on 1 and 8 DF, p-value: 0.12
}}}
* Maxima : some syntax not accepted :
{{{
declare(x,real,mu,real,sigma,real);
define(phi(x,mu,sigma),%e^-((x-mu)^2/(sigma*sqrt(2*%pi))));
Int:integrate(phi(x,mu,sigma),x,minf,inf);
M:integrate(x*phi(x,mu,sigma),x,minf,inf);
V:integrate((x-M)^2*phi(x,mu,sigma),x,minf,inf);
}}}
results in :
{{{
File "<ipython-input-2-e37d2d4f1829>", line 3
define(phi(x,mu,sigma),%e**-((x-mu)**Integer(2)/(sigma*sqrt(Integer(2)*%pi))));
^
SyntaxError: invalid syntax
}}}
Therefore, needs_work...
Nevertheless, I hope this helps...
--
Ticket URL: <http://trac.sagemath.org/ticket/19851#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.