def index(): example_data = [] for command in config.EXAMPLES: data = display_object(ReproducibleObject(command)) data['command'] = command example_data.append(data) return render_template('index.html', example_data=example_data)
def explore(sage_command): """ TODO """ sage_output = ReproducibleObject(sage_command) return render_template( 'explore.html', sage_command = sage_output.command, object_data = display_object(sage_output, link=False), object_help = display_help(sage_output), object_methods = display_methods(sage_output), object_properties = display_properties(sage_output), )