Deploy your App with PythonAnywhere and Dash Plotly

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 120

  • @drpatrickstacey7203
    @drpatrickstacey7203 2 года назад +1

    Thanks Adam, excellent. Since Aug 21 you will all need the PAT (personal access token) when pushing. Cheers

    • @gustavo8433
      @gustavo8433 2 года назад +1

      The console bash dont read my token.

  • @teunerp1335
    @teunerp1335 3 года назад +8

    Hey Adam, Thank you so much for your videos they are great.
    I solved the error “No such file or directory” by adding the directory in the demo-app.py and adding ecoding=”cp1252’ when reading the csv. For example pd.read_csv ('/home/(name of your pythonanywhere)/demo-3/politics1.csv', encoding='cp1252').
    Thanks again for the great content, it is really helpful!

  • @tobiasrohrbach8150
    @tobiasrohrbach8150 3 года назад +2

    Even though I don't really know what I'm doing most of the time, I managed to build my own app thanks to your videos!

    • @CharmingData
      @CharmingData  3 года назад

      Thanks Tobias. Can you share a link to your app? I'd love to see it.

  • @brucelee50002000
    @brucelee50002000 3 года назад +1

    I have successfully deployed my first web app in my life from your tutorial. Thank you, Adam.

    • @CharmingData
      @CharmingData  3 года назад +1

      You're welcome @Gia. It's a wonderful feeling. I remember how thrilled I was when I deployed my first app about 1 year ago. Congratulations 👏
      Hope you benefit and continue learning from the other tutorials in this channel

    • @brucelee50002000
      @brucelee50002000 3 года назад

      @@CharmingData One more good thing here, your word document is the best to track what I do if I lost when working with a lot of stuff. This is a great and highlight idea from you to distinguish other channels.

  • @mohankumar8523
    @mohankumar8523 3 года назад +1

    I have so much faith on the quality of your video that first I like your video then watch .

    • @CharmingData
      @CharmingData  3 года назад

      Thank you, @MOHAN 🤗 I hope you enjoy this one too

  • @mathiasschindler4165
    @mathiasschindler4165 Год назад +1

    Wow! Amazingly helpful and well-explained. Thank you so much!!

  • @Ijiljili
    @Ijiljili 6 месяцев назад

    Excellent tutorials. Amazing teaching skills. Thank you very much.

    • @CharmingData
      @CharmingData  6 месяцев назад

      You're welcome. I'm glad you like it. Don't forget to join our Charming Data community if you'd like to work on data apps and AI together with others.
      charming-data.com/

  • @CharmingData
    @CharmingData  3 года назад +3

    Hi Everyone, to follow along, don't forget to save this step-by-step guide: drive.google.com/file/d/1HtJcu3ZWsDYEIv8srod16z4jD4HEeHuH/view
    To join my Patreon community for more on Dash Plotly: www.patreon.com/charmingdata
    Feel free to ask any questions if something doesn't work for you when uploading your app.

    • @CharmingData
      @CharmingData  3 года назад

      @Olta Klosi Olta, try looking at the elections.py file I put on GitHub. Under the df = read_csv()... line, I show another option where you can outline the needed path.

  • @ahmadzakysaid9198
    @ahmadzakysaid9198 Год назад

    Thx a lot!!
    I have successfully deployed my first web dash, thx to you!!

  • @luckysrivastava798
    @luckysrivastava798 3 года назад +1

    ❤️❤️❤️ Love from india🇮🇳 bro keep it up👍👍👍

  • @jgupman
    @jgupman 2 года назад

    you are the best! just got my first web app deployed!

  • @carlosmonsivais5101
    @carlosmonsivais5101 3 года назад +2

    Great video, everything worked step by step, clear and concise!

  • @pritamkashyap4077
    @pritamkashyap4077 Год назад +1

    Awesome. Keep up the good work

  • @aftotto
    @aftotto 3 года назад +2

    Big fan of your videos. They have helped me a lot

  • @kevinnolasco5247
    @kevinnolasco5247 3 года назад

    Adam, thanks to your videos I was able to build my first dash app and share it online!
    Your presentation of the material is so quick and to the point. I appreciate your content!

    • @CharmingData
      @CharmingData  3 года назад

      You're welcome, @Kevin. It's s week feeling that first app that we build and deploy. If you'd like to support this channel and my making more of these tutorials, I'd really appreciate it 🙏 www.patreon.com/charmingdata
      Happy new year to you. And feel free to let me know if you have any dash Plotly questions in the future.

  • @nilanjanaghosh7032
    @nilanjanaghosh7032 3 года назад +1

    Hi, getting the error ERROR: Could not find a version that satisfies the requirement pywin32==300. Can someone please help?

  • @fayezhesham1057
    @fayezhesham1057 3 года назад

    Thank you, Adam I am really grateful that you do these tutorials
    I finally have my app up and running and now I can put it in my portfolio.
    thank you so much

    • @CharmingData
      @CharmingData  3 года назад

      You are welcome, Fayez. I'd love to see it if you'd like to share. You can email me at: adam@charming-data.com

  • @sajidsarkar9574
    @sajidsarkar9574 2 года назад

    Thank you so much Adam! This is real solid stuff. Every thing was explained to the detail. Super helpful. Please keep on making such videos. It is difficult to find such awesome videos nowadays because there is so much information clutter out there. Carry on!

  • @insideio
    @insideio Год назад

    You made my day sir, thanks a lot

  • @Joe-ps7em
    @Joe-ps7em Год назад +1

    This was VERY HELPFUL!

  • @Truesilverful
    @Truesilverful 3 года назад +1

    This is priceless, thank you. Well worth it to be patreon!

  • @graficasderanking9715
    @graficasderanking9715 3 года назад +1

    Great video. It would be a good video of How to deploy the dash app to an private local server or in a virtual machine

  • @DILASTUDIO
    @DILASTUDIO 3 года назад +1

    your video is really helpful , using your tutorial I'm able to make my first dashboard with python. thank you so much. keep it up, i hope you can make more new tutorials :)

    • @CharmingData
      @CharmingData  3 года назад

      Thank you @Fadhilah. Good luck with your next dashboard 🤗

  • @RahulKumar-ey9xl
    @RahulKumar-ey9xl 3 года назад +1

    Nearing 10k. Lets go. You deserve more subs

  • @Aditya.Santra
    @Aditya.Santra 3 года назад

    Very Helpful Video

  • @ahmadnadeem870
    @ahmadnadeem870 10 месяцев назад

    Thank Adam, i have created a dash app by watching you videos. i enjoyed a lot while following the steps and having wonderful results. i have a question, what if i want to deploy the app on a private server instead of git etc?

  • @energyrogue
    @energyrogue Год назад

    Thank you for all of your tutorials - these are amazing!! One question - can you have a second web app? how would that be managed with the 'mysite'....that part confuses me

  • @Qzbub
    @Qzbub 2 года назад

    dude you are the best ❤❤

  • @veason123
    @veason123 3 года назад +3

    Hi Adam! Great video! Learnt a lot from you! While I deploying my dash app to the pythonanywhere, I got this issue: ModuleNotFoundError: No module named 'elections'. I tried to pip install elections. But I got an error also: No matching distribution found for election. Any idea how should I fix this problem? thanks!

    • @CharmingData
      @CharmingData  3 года назад

      Hi @Diao I've never had that problem. At what stage does it occur?

  • @reinierdick6181
    @reinierdick6181 Год назад

    I dont get it. I add the .gitignore file as the video explains and still this is uploaded to the repository, what am i doing wrong

  • @amir_forooghi
    @amir_forooghi 3 года назад +1

    great tutorial . Very energetic and easy to understand. Thanks Adam. Big like for you =D

    • @CharmingData
      @CharmingData  3 года назад

      Thank you Amir.

    • @amir_forooghi
      @amir_forooghi 3 года назад

      @@CharmingData Welcome. Adam can you give me your opinion about this link? stackoverflow.com/questions/65384985/automatic-scaling-of-y-axis-in-dash-according-to-the-relayoutdata-attribute

    • @CharmingData
      @CharmingData  3 года назад

      @@amir_forooghi Amir, do you have this app on stackoverflow live so I can see it and play with the zoom?

    • @amir_forooghi
      @amir_forooghi 3 года назад

      @@CharmingData If you just paste the code in your IDE, It will run. The dataframe is on github so pandas can read it.

    • @CharmingData
      @CharmingData  3 года назад +1

      @@amir_forooghi I just answered you on stackoverflow

  • @ShaiSussman
    @ShaiSussman 3 года назад

    Thank you Adam!

  • @samiryahiaoui
    @samiryahiaoui 2 года назад

    Excellent tutorial!

  • @moeezsaleem7072
    @moeezsaleem7072 3 года назад +1

    Your amazing:), great content.

  • @shrikanttyagi8798
    @shrikanttyagi8798 3 года назад +1

    Again sir how this display same page in android apk? I need android apk deploy code .. please sir share or make one video

  • @blociot
    @blociot 3 года назад +2

    Thank you Adam. Perfect as always. Any chance to create a video to talk about basic security topics when deploying the app? I understand https is the first one, but what else do we need to do to make sure someone doesn't take our app down?

    • @CharmingData
      @CharmingData  3 года назад +1

      Hi @Mos. Thanks for watching. I'll look into it. I'm not an expert in website security, but I'll read more about it.

  • @thousandsunny100
    @thousandsunny100 3 года назад +2

    Very helpful tutorial! Can you please create another tutorial on how to deploy the same on a linux server (VPS)? Thank you in advance! Subbed!

    • @CharmingData
      @CharmingData  3 года назад +1

      Thanks for the suggestion, @Emil

  • @NanaOkyere
    @NanaOkyere 3 года назад +1

    Good share

    • @CharmingData
      @CharmingData  3 года назад

      Thank you Nana. Let me know if you have questions along the way

  • @osamakidwai8912
    @osamakidwai8912 5 месяцев назад

    Hi,
    When I type git init, git add and git commit commands, it shows me an error in pycharm. Can someone guide regarding it?

  • @xjp
    @xjp 3 года назад

    Excellent video. BTW I believe it should be pip3 and not pip,.

  • @nishantkumar-lw6ce
    @nishantkumar-lw6ce Год назад

    What’re the best ways to deploy open source plotly dash app on AWS? What services can we use to deploy there if we have to avoid enterprise edition?

    • @CharmingData
      @CharmingData  Год назад

      hi Nishant, I honestly don't know. I've only deployed a Dash app on Heroku, Pythonanywhere and Render

  • @rowflake130
    @rowflake130 3 года назад

    This is binge watching material *.*

  • @mackas33
    @mackas33 3 года назад +2

    Thanks for this awesome tutorial, otherwise I get this error "ERROR: Could not install packages due to an OSError: [Errno 122] Disk quota exceede"

  • @akaAntifa
    @akaAntifa 2 года назад

    hi, thanks for all! I'm going to see all your videos various times. I use visual studio community, and cant find the way to have the terminal activated with the virtual environment. Do you know how to do that?

    • @CharmingData
      @CharmingData  2 года назад

      Hi Javier I'm sorry but I don't use visual studio community

  • @eduardomurphyperez717
    @eduardomurphyperez717 3 года назад

    Hi Adam, I am also having problem with the data amount (using more than 500 Mb), I am trying to deploy an app (not the one that you are posting here) made in dash, and I was wondering... if python anywhere is cloning from the repository, why do you need to reinstall all the libraries in the requirements.txt?

    • @CharmingData
      @CharmingData  3 года назад +1

      hi Eduardo. The requirements dot txt file is just a list of library names that pythonanywhere can use to install the libraries.

  • @Smart-sv8jb
    @Smart-sv8jb 2 года назад +1

    Thank you so much! Can you produce files with data in Json format.

  • @mdaplaton
    @mdaplaton 2 года назад

    Thx for the content!
    Is it possible to grant access to different users with different usernames and psw?

    • @CharmingData
      @CharmingData  2 года назад

      yes, you can do that with Dash authentication on a basic level: dash.plotly.com/authentication

  • @its_me7363
    @its_me7363 3 года назад

    This hosting website gives only 512 Mb of storage space...sometimes it might not be enough...is there any website which gives more space and RAM for free than this?

    • @CharmingData
      @CharmingData  3 года назад

      Hi @its_me. You can get more space if you pay &5 a month. I don't know any other hosting platform that will give you more than 512mb for free accounts. Does anyone else here know? Please help @its_me if you do.

  • @HeroSphereTCG
    @HeroSphereTCG 3 года назад

    Can you embed a pythonanywhere app on your own website? I created a game in python and want to host it on my own website.

    • @CharmingData
      @CharmingData  3 года назад

      Hi. I don't think. I haven't tried that.

  • @raviramadas4313
    @raviramadas4313 3 года назад

    Hi Adam, thanks a lot for this video. This this is better than heroku. Is there anyway I can host dash apps on my local network server? Appreciate if you have any pointers on this.

    • @CharmingData
      @CharmingData  3 года назад

      Hi Ravi, there is a way but it's complicated and I haven't done it. But you could always create an app on pythonanywhere and add a password to it

  • @theinstigatorr
    @theinstigatorr 3 года назад

    This is much more hassle than heroku but at least it works for me rather than the errors I get on that platform

  • @josueyoon5156
    @josueyoon5156 3 года назад

    Thanks for this awesome tutorial. I have a question about the data that feeds the dash. Now I am reading my csv files locally but if I want to deploy it in a web (using python anywhere or heroku) from where should I have to read my files if I want to keep those private? Thanks!

    • @CharmingData
      @CharmingData  3 года назад

      Do you mean you prefer having a private GitHub repository?

    • @josueyoon5156
      @josueyoon5156 3 года назад

      @@CharmingData I want to deploy a dash with a confidential data. Does a private repository guarantee the confidentiality of my data? Should a have to read my files with a token that provides github right?

    • @CharmingData
      @CharmingData  3 года назад

      @@josueyoon5156 there is always risk in having confidential data on your app unless you're a data security expert. That's why companies will higher data security experts to ensure their data safety. But those companies still get hacked.
      That's to say you can never secure your data 100% but making your GitHub private will help

    • @CharmingData
      @CharmingData  3 года назад

      I'm sure there are other ways to secure your data online. It has less to do with Dash and more to do with your file structure and server you're using.

    • @josueyoon5156
      @josueyoon5156 3 года назад

      @@CharmingData thank you so much for your reply!!

  • @ivochula
    @ivochula 3 года назад

    Hi Adam, Thank you for your tutorial.
    I have learned a lot with your videos and i am developing a dashboard to help in my company only by learning with your videos and documentation.
    One question, my dashboard loads its data from a excel sheet, how can i update my dashboard (already deployed) everytime the excel sheet is modified?

    • @CharmingData
      @CharmingData  3 года назад

      Hi @Ivo, one way to do that is to connect the excel sheet to a live database like Mongo or PostgreSQL, because you can connect the database to Dash. And with a dcc.Interval, the app can pull data from the database every x amount of time. Dash cannot pull info from an excel sheet live, because an excel sheet is static.

    • @ivochula
      @ivochula 3 года назад

      @@CharmingData Thank you Adam, i will check that option with a Database and maybe i'll develop a User Interface Dash to replace the Excel sheet and the user will introduce the data directly to the database via User Interface.

    • @luisbernal3534
      @luisbernal3534 2 года назад

      I have the same question. It would be cool to make a video about it.
      Your content has been extremely useful for my work. Cheers from Colombia!

  • @returntonature7320
    @returntonature7320 Год назад

    Hello adam
    Thanks for your great tutorial🙏🏻
    please teach us how to deploy our dash app on a local server like company's domestic servers without Internet!
    As far as I know dash app will not work only by changeing host and port in app.run_server()
    How should we deal with this?
    Thank you so so much🎉

  • @shrikanttyagi8798
    @shrikanttyagi8798 3 года назад

    Graph menu how disable plotly hyper link..?

    • @CharmingData
      @CharmingData  3 года назад

      if you're referring to disable the logo, you can use the config prop inside the dcc.Graph like this: dcc.Graph(... config={"displaylogo": False})

    • @shrikanttyagi8798
      @shrikanttyagi8798 3 года назад

      @@CharmingData thanks sir

    • @shrikanttyagi8798
      @shrikanttyagi8798 3 года назад

      @@CharmingData I am asking for graph inbuild menu .. picture,zoom in, zoom out,pen,box,plotly hyper link .. just want only one item plotly hyper link should not display.

    • @CharmingData
      @CharmingData  3 года назад +1

      @@shrikanttyagi8798 yes, that's the way to do it.

    • @shrikanttyagi8798
      @shrikanttyagi8798 3 года назад

      @@CharmingData great sir.. please also make video on how to make android apk which display dash and plotly chart

  • @HeiderZapata
    @HeiderZapata 2 года назад

    Hi friend,
    I don't uderstand what happened in the minute 21:14 to 22:16.
    My python file is called app.py so I'm doing this:
    from app import app
    application = app.server
    and i'm having this error:
    2022-05-28 02:55:49,870: Error running WSGI application
    2022-05-28 02:55:49,872: NameError: name 'app' is not defined
    2022-05-28 02:55:49,872: File "/var/www/heiderzapata_pythonanywhere_com_wsgi.py", line 17, in
    2022-05-28 02:55:49,872: application = app.server
    ¿why?
    you wrote:
    from elections import app
    application = app.server
    because your python file is called elections.
    Thanks for your help friend

    • @CharmingData
      @CharmingData  2 года назад

      Hi Heider, try to change the name of your folder from app to something else. It's ok if the name of the app is app.py, but the folder should have a different name,

  • @Elcunato
    @Elcunato 2 года назад

    Hello Adam, thank you very much for your video! One thing though, in my app I'm using a chorepleth map with a .geojson file.
    On my local computer, I then needed to pip install geopandas after installing the wheels for Fiona and GDAL.
    But when I'm using the bash on PythonAnywhere, it displays this:
    ERROR: Fiona-1.8.21-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.
    And on my requirements.txt, I have this associated line:
    Fiona @ file:///C:/Users//PycharmProjects//venv/Lib/site-packages/Fiona-1.8.21-cp39-cp39-win_amd64.whl
    Same for GDAL. What should I do?

    • @CharmingData
      @CharmingData  2 года назад +1

      Hi Kevin, I'm afraid it's a pythonanywhere thing. You either find a different way to plot your choropleth or you can try to use Heroku. Look at dash-tools on pypi an easy Heroku deployment

    • @Elcunato
      @Elcunato 2 года назад

      @@CharmingData thank you for your quick answer! I’ve contacted the support team at PythonAnywhere, they’re using Linux. I’ll see if there’s something I can edit in my requirements.txt file and if this is not working I’ll opt for the alternative you’ve recommended me. Thank you so much for your videos, It’s my first time creating a Dash app and your videos are gems.

  • @ahmadnadeem870
    @ahmadnadeem870 10 месяцев назад

    Thank Adam, i have created a dash app by watching you videos. i enjoyed a lot while following the steps and having wonderful results. i have a question, what if i want to deploy the app on a private server instead of git etc?

    • @CharmingData
      @CharmingData  9 месяцев назад

      I've never done that, sorry. But I've heard people with private servers do it.