Questions tagged [empythoned]

CPython compiled to JS using emscripten

Empythoned is a build script that uses to compile for use in a browser. It attempts to compile the main interpreter as a single small executable and the whole standard library as dynamically loaded libraries.

3 questions
2
votes
1 answer

import statement in empythoned doesn't work in chrome extension

I am using javascript generated by Empythoned to create a chrome extension. Python import doesn't work in chrome extension where as it works in web application. Here is the demo. Sample code: Web App Input import collections print…
Kracekumar
  • 19,457
  • 10
  • 47
  • 56
2
votes
0 answers

How to implement a sandboxed python interpreter in django to allow user to upload and run code with limited file-system access

I'm looking at building a web based learning environment for Python-based bioinformatics programming. I'm aiming for a mix of Codeacademy's interface, with Rosalind-style questions, preferably implemented in Django. I need to offer some limited file…
Josha Inglis
  • 1,018
  • 11
  • 23
1
vote
2 answers

datetime.timedelta returns unexpected results?

I don't seem to understand how I'm supposed to use Python's datetime.timedelta function to calculate tomorrow's date. Example: from datetime import datetime, timedelta print(datetime.now()) print( datetime.now() +…
Pierlo Upitup
  • 1,614
  • 4
  • 19
  • 27