This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.9.2/brython.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.9.2/brython_stdlib.min.js"></script> | |
</head> | |
<body onload="brython()"> | |
<script type="text/python"> | |
from browser import document, window, html |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Brython ajax example for comments</title> | |
<meta charset="UTF-8"> | |
<noscript>Please enable Javascript to view this page correctly.</noscript> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.7.4/brython.min.js"></script> | |
<script type="text/python"> | |
from browser import document as doc, alert, html | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html><head> | |
<meta name="description" content="Brython"> | |
<meta name="keywords" content="Python,Brython"> | |
<meta name="author" content="Pierre Quentel"> | |
<meta http-equiv="content-type" content="text/html; charset=windows-1252"> | |
<noscript>Please enable Javascript to view this page correctly.</noscript> | |
<script type="text/javascript" src="brython.js"></script> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import argparse | |
import subprocess | |
from venv import EnvBuilder | |
# Custom options | |
parser = argparse.ArgumentParser(description='inherit venvs') | |
parser.add_argument( | |
'--other-venv-paths', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.display import IFrame | |
def ddg(self, arg): | |
phrase = arg.replace(' ', '+') | |
url = "https://duckduckgo.com/?&q={0}".format(phrase) | |
return IFrame(url, 600, 400) | |
ip = get_ipython() | |
ip.define_magic('ddg', ddg) |
NewerOlder