Ask coding questions

← Back to all posts
matplotlib breaks flaks
Ubya (0)

i made the simplest flask page one could make

app = Flask('')

@app.route('/')
def main():
    return "page is alive!"

def run():
    app.run(host="0.0.0.0", port="8080")

if i run the script as is it works fine, but as soon as i import the matplotlib library, a new window appears (fluxbox) and the page simply doesn't load

i have no clue what to do to be honest, i can't see why having matplotlib would break flask

Voters
Ubya (0)