Adds python-version file
This commit is contained in:
		
							parent
							
								
									fc3b0de89b
								
							
						
					
					
						commit
						93ecad3223
					
				
					 2 changed files with 18 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								.python-version
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.python-version
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					3.11.1
 | 
				
			||||||
							
								
								
									
										17
									
								
								app.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								app.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					from shiny import App, render, ui
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					app_ui = ui.page_fluid(
 | 
				
			||||||
 | 
					    ui.h2("Hello Shiny!"),
 | 
				
			||||||
 | 
					    ui.input_slider("n", "N", 0, 100, 20),
 | 
				
			||||||
 | 
					    ui.output_text_verbatim("txt"),
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def server(input, output, session):
 | 
				
			||||||
 | 
					    @output
 | 
				
			||||||
 | 
					    @render.text
 | 
				
			||||||
 | 
					    def txt():
 | 
				
			||||||
 | 
					        return f"n*2 is {input.n() * 2}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					app = App(app_ui, server)
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue