Is there a possibility to provide the user a way to choose resp. to select a folder on the machine?
In my case, Server and User is on the same machine, in case this plays a role. I created an app that analyzes excel files and I want to be able to choose the folder where they are located. Is there a way to do so?
Thanks a lot in advance!
Give a look here and see if there is anything that helps you out:
I am newbie and looking for a collapsible sidebar with the list of uploaded files.
I am able to get a basic one but navigation is not good and also it is not collapsible. I see some bootstrap ones(e.g
https://bootsnipp.com/snippets/DV41) but not sure how to use them?
Do I download them and store for the app to access? Any details on how-to is appreciated. The documentation says download and store the css and js files, but how about HTML to display the equivalent UI(here it is sidebar). Should …
Thanks for forwarding me towards this thread. Tbh, I’m not so well used to plotly which makes it a bit hard for me to identify the needed input there.
But I assume How to create a collapsible sidebar with tree structure of uploaded files - #8 by andrew-hossack? is what I am looking for? Could you please confirm this?
But as I see correctly this is mainly or only addressing how to visualize a given path? How do I let the user choose the path in the first instance?
Yes, that’s what I was alluding to.
You can create some sort of navigation when selecting the directories. If not populated with info, then you populate it with a callback.
Sorry, I don’t understand what you’re saying. Could you please rephrase it somehow?
I’m thinking about a workaround: It is probably possible to enter text through some UI-gadget and this I should be easily be able to use as a path from there on, right?
The question just is how to actually do that. There must be something like a pre-app that pops up with only the text input and a confirmation button and then the actual app and stuff commences. Is this somehow doable?
You could initiate your app with command line arguments. One of those arguments could be the path you are referring to.
Python command-line arguments are the key to converting your programs into useful and enticing tools that are ready to be used in the terminal of your operating system. In this step-by-step tutorial, you'll learn their origins, standards, and basics,...
Working on a machine learning project means we need to experiment. Having a way to configure your script easily will help you move faster. In Python, we have a way to adapt the code from a command line. In this tutorial, we are going to see how we...
Est. reading time: 14 minutes
EDIT: Actually I’m not sure if this works
What I did in the past is creating a
config.py file which I import in the
something like this:
my_path = '...'
path_to_use = config.my_path
app = dash.Dash(__name__)
app.layout = html.Div(path_to_use)
Not pretty but a very efficient workaround
Yeah, I know I’m not going to win a beauty contest with this one