Skip to content

Commit 81e060b

Browse files
committed
Add a custom sagecell server URL option.
1 parent 983c1c6 commit 81e060b

1 file changed

Lines changed: 33 additions & 23 deletions

File tree

conf/localOverrides.conf.dist

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ $generic_sender_name = '';
3636
# site.conf. They can also be used to improve email verification and avoid
3737
# messages getting filtered as spam.
3838

39-
$feedback_sender_email = ''; # For student feedback
40-
$instructor_sender_email = ''; # For instructors emailing students
41-
$jitar_sender_email = ''; # For notifications of incomplete JiTaR sets
39+
$feedback_sender_email = ''; # For student feedback
40+
$instructor_sender_email = ''; # For instructors emailing students
41+
$jitar_sender_email = ''; # For notifications of incomplete JiTaR sets
4242

4343
# By default, feedback is sent to all users who have permission to
4444
# receive_feedback in a course. If this list is non-empty, feedback is also sent
@@ -56,7 +56,7 @@ $jitar_sender_email = ''; # For notifications of incomplete JiTaR sets
5656
# The advantage of this form is that the resulting email will include the name
5757
# of the recipient in the "To" field of the email.
5858

59-
$mail{feedbackRecipients} = [
59+
$mail{feedbackRecipients} = [
6060
#'prof1@yourserver.yourdomain.edu',
6161
#'prof2@yourserver.yourdomain.edu',
6262
];
@@ -119,7 +119,6 @@ $mail{feedbackRecipients} = [
119119
# upgrade WeBWorK to a new version.
120120
#$webworkFiles{site_info} = "$webworkDirs{htdocs}/our_site_info.txt";
121121

122-
123122
# The setHeader precedes each set in hardcopy output. It is a PG file.
124123
# Uncomment one of these to use a file from within the course templates directory
125124
# rather than a centrally-stored file shared by all courses.
@@ -147,7 +146,6 @@ $mail{feedbackRecipients} = [
147146
# OpenProblemLibrary
148147
################################################################################
149148

150-
151149
# For configuration instructions, see:
152150
# https://wiki.openwebwork.org/wiki/Open_Problem_Library
153151
# The directory containing the open problem library files. Set to "" if no problem
@@ -183,20 +181,19 @@ $mail{feedbackRecipients} = [
183181
# Problem Library.
184182

185183
#$courseFiles{problibs} = {
186-
#Library => "OPL Directory",
187-
#Contrib => "Contrib",
184+
#Library => "OPL Directory",
185+
#Contrib => "Contrib",
188186
# the following are not really needed but you can
189187
# create links to your own private libraries this way.
190-
#rochesterLibrary => "Rochester",
191-
#unionLibrary => "Union",
192-
#asuLibrary => "Arizona State",
193-
#dcdsLibrary => "Detroit CDS",
194-
#dartmouthLibrary => "Dartmouth",
195-
#indianaLibrary => "Indiana",
196-
#osuLibrary => "Ohio State",
188+
#rochesterLibrary => "Rochester",
189+
#unionLibrary => "Union",
190+
#asuLibrary => "Arizona State",
191+
#dcdsLibrary => "Detroit CDS",
192+
#dartmouthLibrary => "Dartmouth",
193+
#indianaLibrary => "Indiana",
194+
#osuLibrary => "Ohio State",
197195
#};
198196

199-
200197
################################################################################
201198
# Permission levels
202199
################################################################################
@@ -273,13 +270,12 @@ $mail{feedbackRecipients} = [
273270
# The first uncommented option is the default for instructors rendering problems
274271
# in the Library Browser and Set Detail page.
275272
#$pg{displayModes} = [
276-
#"MathJax", # render TeX math expressions on the client side using MathJax
277-
# we strongly recommend people install and use MathJax, and it is required if you want to use mathview
278-
#"images", # display math expressions as images generated by dvipng
279-
#"plainText", # display raw TeX for math expressions
273+
#"MathJax", # render TeX math expressions on the client side using MathJax
274+
# we strongly recommend people install and use MathJax, and it is required if you want to use mathview
275+
#"images", # display math expressions as images generated by dvipng
276+
#"plainText", # display raw TeX for math expressions
280277
#];
281278

282-
283279
# Default display mode. Should be an uncommented item listed above.
284280
#$pg{options}{displayMode} = "images";
285281

@@ -359,7 +355,6 @@ $mail{feedbackRecipients} = [
359355
# the value of 0 disables re-randomization
360356
#$pg{options}{periodicRandomizationPeriod} = 5;
361357

362-
363358
################################################################################
364359
# "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.)
365360
################################################################################
@@ -434,6 +429,21 @@ $mail{feedbackRecipients} = [
434429
# use this setting when running Rserve in a docker container.
435430
#$pg{specialPGEnvironmentVars}{Rserve} = {host => "r"};
436431

432+
################################################################################
433+
# Usa a custom Sage cell server.
434+
################################################################################
435+
436+
# By default the AskSage method of PG uses the public sagecell service located
437+
# at https://sagecell.sagemath.org/service. However, the server at that address
438+
# is no longer accepting public requests. So in order for problems that use the
439+
# AskSage method to work a different sagecell server must be used. Uncomment
440+
# the line below and set the value to a custom sagecell server address to use
441+
# with the AskSage method. If using the docker container built with the
442+
# instructions and files in the sagecell-docker directory the PG repository, the
443+
# use the line below as is.
444+
445+
#$pg{URLs}{sagecellService} = 'http://localhost:3500/service';
446+
437447
################################################################################
438448
# Authentication
439449
################################################################################
@@ -749,4 +759,4 @@ $mail{feedbackRecipients} = [
749759
# If 0, there is no cap. Otherwise, should be a positive integer.
750760
#$test{maxProblemsPerPage} = 1;
751761

752-
1; #final line of the file to reassure perl that it was read properly.
762+
1; #final line of the file to reassure perl that it was read properly.

0 commit comments

Comments
 (0)