Index of /repls
# https://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions.suppresshtmlpreamble
Options +Indexes
IndexOptions FancyIndexing HTMLTable NameWidth=* IconWidth=20 SuppressHTMLPreamble
HeaderName header.html
ReadmeName footer.html
AddIcon icons/html_file.png .html
AddDescription "<py-script>" .html
pyscript.write('output', '')
def print1(*args):
print_string = ''
for arg in args:
num_leading_spaces = len(str(arg)) - len(str(arg).lstrip())
new_string = '⠀'*num_leading_spaces + str(arg)
print_string = print_string+' '+new_string
pyscript.write('output', print_string, append=True)
x = 100; y =200
if (x < y): print('yay') # html entity
for i in range(10):
print(f'{i*i: 6.1f}', 'tt', i, 3.14)
id='2'
auto-generate='false' makes it auto-generate!- don't use
output-mode='replace'
std-out='output2'
std-out='output3' output-mode='append'
# id='3' std-out='output3' output-mode='append'