<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Moodle Plugins directory: SageCell: Comments</title>
    <link>https://moodle.org</link>
    <description>A Moodle filter plug-in to view results of Sage code using the SageMathCell server. 
It embeds any code as plain text.

This filter will replace Sage code in [sage]...[/sage] block with the result of calculations in embedded sagecell.

</description>
    <generator>Moodle</generator>
    <language>en</language>
    <copyright>(c) 2026 Moodle - Open-source learning platform | Moodle.org</copyright>
    <image>
      <url>https://moodle.org/theme/image.php/moodleorg/core/1776241734/i/rsssitelogo</url>
      <title>moodle</title>
      <link>https://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <title>Friday, 26 January 2018, 6:05 PM - Ger Tielemans</title>
      <link>https://moodle.org/plugins/filter_sagecell#comment-47878</link>
      <pubDate>Fri, 26 Jan 2018 10:05:57 GMT</pubDate>
      <description>by Ger Tielemans. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Another comment:&lt;br&gt;
If I add the following code in the online SageCell editor (Sagemath.org), I get correct answers.&lt;br&gt;
If I put it in the SageCell editor, I get 4 times [math error] instead of the big numbers. The plot is the same. My question: is SageCell connecting to a different server?&lt;br&gt;
#2017 AB2 (GC)&lt;br&gt;
f(t)=10+0.8*t*sin(t^3/100)&lt;br&gt;
g(t)=3+2.4*log(t^2+2*t)&lt;br&gt;
#2a)&lt;br&gt;
show(integrate(f(t),t,0,2).n())&lt;br&gt;
#2b)&lt;br&gt;
fp(t)=diff(f(t),t)&lt;br&gt;
show(fp(7).n())&lt;br&gt;
#2c)&lt;br&gt;
show((g(5)-f(5)).n())&lt;br&gt;
#2d)&lt;br&gt;
show((50-integrate(f(t),t,0,3)+integrate(g(t)-f(t),t,3,8)).n())&lt;br&gt;
#graphs&lt;br&gt;
plot([f(t),g(t)],0,8)&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_sagecell#comment-47878</guid>
    </item>
    <item>
      <title>Friday, 19 January 2018, 7:42 PM - Ger Tielemans</title>
      <link>https://moodle.org/plugins/filter_sagecell#comment-47745</link>
      <pubDate>Fri, 19 Jan 2018 11:42:15 GMT</pubDate>
      <description>by Ger Tielemans. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;David, is the XSS filter the problem here and can you solve it without losing security? &lt;br&gt;
&lt;br&gt;
We have lecturers who teach Math, Python, R and are jumping between Moodle en Jupyter Notebook to allow students use editors with code evaluate options. I found in Moodle the Sage filter which connects to a SageCell server.&lt;br&gt;
Sage had a Sage Notebook, but is now creating a version (8.1) on top of Jupyter Notebook: &lt;a href=&quot;http://www.sagemath.org/&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;http://www.sagemath.org/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
If you wish to use the complete functionality of Jupyter (and the new JupyterLab) you stick to that, &lt;br&gt;
but why not have the option to connect to the server and borrow editor boxes you merge in a Moodle book, so you can combine the options from Moodle with such editors? &lt;br&gt;
&lt;br&gt;
The Sage plugin asks now for code between the sage tags like [sage]1+2[/sage] and shows only the result.&lt;br&gt;
&lt;br&gt;
If you change the plugin in your own moodle it can also offer Sage in editor mode  [sage]...[/sage] and then you can type - in Moodle -  code. If you then press evaluate it works.&lt;br&gt;
&lt;br&gt;
If you wish to create a &quot;Jupyter-like&quot; Moodle book you wish to offer students combinations of text with empty editors and editors already filled with code where students have to press the evaluate button like [sage]example code[/sage]&lt;br&gt;
&lt;br&gt;
BUT: when there  are symbols in the code like &amp;lt; or &amp;gt; our Moodle/server combination FIRST replaces &amp;lt; with:   &amp;amp; l t ; &lt;br&gt;
If you press &quot; evaluate&quot; you get an error, but if you manually put the code symbol back and then press it works fine...&lt;br&gt;
&lt;br&gt;
How to overrule this Moodle action? (store &amp;amp; l t ; in database and translate the code back before it opens in the editor?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_sagecell#comment-47745</guid>
    </item>
    <item>
      <title>Thursday, 2 February 2017, 12:55 AM - Ger Tielemans</title>
      <link>https://moodle.org/plugins/filter_sagecell#comment-40626</link>
      <pubDate>Wed, 01 Feb 2017 16:55:21 GMT</pubDate>
      <description>by Ger Tielemans. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Works now fine in 3.2&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_sagecell#comment-40626</guid>
    </item>
    <item>
      <title>Wednesday, 17 August 2016, 1:51 PM - Ger Tielemans</title>
      <link>https://moodle.org/plugins/filter_sagecell#comment-37605</link>
      <pubDate>Wed, 17 Aug 2016 05:51:29 GMT</pubDate>
      <description>by Ger Tielemans. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;When I try the demo with agoogle account I get:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
( ! ) Warning: require_once(../../lib/pluginlib.php): failed to open stream: No such file or directory in /home/ccjourna/public_html/vtutor/auth/elcentra/google_response.php on line 26&lt;br&gt;
Call Stack&lt;br&gt;
#	Time	Memory	Function	Location&lt;br&gt;
1	0.0009	237216	{main}&lt;img class=&quot;icon emoticon&quot; alt=&quot;egg&quot; title=&quot;egg&quot; src=&quot;https://moodle.org/theme/image.php/moodleorg/core/1776241734/s/egg&quot;&gt;	.../google_response.php:0&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_sagecell#comment-37605</guid>
    </item>
    <item>
      <title>Saturday, 13 August 2016, 3:30 AM - David Mudrák</title>
      <link>https://moodle.org/plugins/filter_sagecell#comment-37560</link>
      <pubDate>Fri, 12 Aug 2016 19:30:02 GMT</pubDate>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;p&gt;Thanks for the updated version. Please see your tracker for a reported recommendation to remove the empty settings.php file (leading to an empty settings page). Also note it might help to provide some examples of actual SageMathCell syntax in the description.&lt;/p&gt;

&lt;p&gt;Let me suggest to improve the implementation of the &lt;code&gt;inputLocation&lt;/code&gt; selector. Any div with the class &lt;code&gt;compute&lt;/code&gt; is currently processed on the page once the script is executed. It also seems quite ineffective when there are multiple cells created on the page.&lt;/p&gt;

&lt;p&gt;This can be approved now. You are cleared to land, welcome to the &lt;a title=&quot;Auto-link&quot; href=&quot;https://moodle.org/plugins&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;Plugins directory&lt;/a&gt;!&lt;/p&gt;
&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_sagecell#comment-37560</guid>
    </item>
    <item>
      <title>Thursday, 7 May 2015, 10:24 PM - David Mudrák</title>
      <link>https://moodle.org/plugins/filter_sagecell#comment-28547</link>
      <pubDate>Thu, 07 May 2015 14:24:07 GMT</pubDate>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;p&gt;Hi. I am sorry, but the XSS fix is not good enough - I was able to easily bypass it by using &lt;code&gt;[sagecell]&amp;amp;lt;/script&amp;amp;gt;&amp;amp;lt;script&amp;amp;gt;alert('You are doomed!');[/sagecell]&lt;/code&gt;. I don't know details of the SAGE syntax but I am wondering if you can check how the Moodle core function &lt;code&gt;clean_text()&lt;/code&gt; is implemented and whether it could be used to clean up the user's input without negatively affecting the filter functionality. Marking as needing more work again.&lt;/p&gt;
&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_sagecell#comment-28547</guid>
    </item>
    <item>
      <title>Tuesday, 28 April 2015, 10:13 PM - David Mudrák</title>
      <link>https://moodle.org/plugins/filter_sagecell#comment-28371</link>
      <pubDate>Tue, 28 Apr 2015 14:13:54 GMT</pubDate>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;p&gt;Hi Eugene. Thanks for sharing the filter with the community. While reviewing the implementation, I discovered some issues and reported them into your bug tracker. So far, the bug #1 and the security bug #5 are currently approval blockers but ideally all the issues should be addressed. I am going to mark this as needing more work for now.&lt;/p&gt;
&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_sagecell#comment-28371</guid>
    </item>
    <item>
      <title>Tuesday, 28 April 2015, 4:01 PM - Plugins bot</title>
      <link>https://moodle.org/plugins/filter_sagecell#comment-28355</link>
      <pubDate>Tue, 28 Apr 2015 08:01:11 GMT</pubDate>
      <description>by Plugins bot. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Prechecker results: 60 errors/17 warnings&lt;br&gt;
&lt;a href=&quot;http://integration.moodle.org/job/Precheck%20remote%20branch/12886/artifact/work/smurf.html&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;http://integration.moodle.org/job/Precheck%20remote%20branch/12886/artifact/work/smurf.html&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_sagecell#comment-28355</guid>
    </item>
  </channel>
</rss>