Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72388

Export this python code with ipywidget to html?

$
0
0

I've this code for example :

from ipywidgets import interact, Dropdown
from ipywidgets import *

import pandas as pd
import os
import sys

#################### Dropdown avec la liste des servers ####################

Server = os.listdir("/home/tim/Bureau/Servers/")
test = widgets.Dropdown(options = (Server))
Server2 = os.listdir("/home/tim/Bureau/Servers/")

#################### Dropdown avec la liste des dates ####################

Date = ['2019-10', '2019-11', '2019-12', '2020-01']
test2 = widgets.Dropdown(options = (Date))


@interact(Servers = Server, Dates = Date)
def print_all(Servers, Dates):
    Path ="/home/tim/Bureau/Servers"
    CSV = os.path.join(Path,Servers,Dates,'')

    display(CSV)

I need to use it on my website ( html or cgi in python )

Can you show me how to export this to keep the interact in html ?


Viewing all articles
Browse latest Browse all 72388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>