Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

OSError Traceback (most recent call last) in () 9 10 run_with_ngrok(app) ---> 11 app.run()

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello(): return "Hello World"

import portpicker
port = portpicker.pick_unused_port()
from google.colab import output
output.serve_kernel_port_as_window(port)

from gevent.pywsgi import WSGIServer
host='localhost'
app_server = WSGIServer((host, port), app)
app_server.serve_forever()
Comment

PREVIOUS NEXT
Code Example
::  
::  
::  
::  
::  
::  
::  
Javascript :: remove underline from link i react 
::  
::  
::  
::  
Javascript ::  
Javascript ::  
Javascript ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
Javascript ::  
::  
::  
Javascript ::  
ADD CONTENT
Topic
Content
Source link
Name
2+6 =