Getting Started with Plotly and Jupyter!

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 79

  • @phargobikcin
    @phargobikcin 6 років тому +3

    I've watched a lot of youtube videos over the years... but frankly, this might be best channel I have ever stumbled across! A pure gem! Cheers

    • @phargobikcin
      @phargobikcin 6 років тому

      Also a video with dash would be cool!

    • @MarkJay
      @MarkJay  6 років тому

      Thanks! That's very nice of you. haven't used dash but will try it out.

  • @jawnvawn
    @jawnvawn 4 роки тому

    Thanks so much for the awesome tutorial. I know there are comments about this being too advanced, but that's just it. This is for the enthusiasts and python programmers that are left wanting more after watching too many videos about printing lists of fruit. Thanks so so SO much for sharing this with the UA-cam Community. Look forward to seeing more of your content!

  • @popcycleism
    @popcycleism 6 років тому +7

    Fantastic! I don’t have learn to use Tableau. Now to add this to my Udemy learning. Subbed

    • @hellofrombd1960
      @hellofrombd1960 4 роки тому

      Sayan Chowdhury i think tableau is best for visualization. why i will type code for visualization ,right ?

  • @Peter8831
    @Peter8831 4 роки тому +1

    I love Plotly

  • @jalilsharafi
    @jalilsharafi 2 роки тому

    this was extremely useful for me thanks.

  • @iamparay
    @iamparay 4 роки тому

    Thanks for the tutorial..I really enjoy it

  • @emintavlayan
    @emintavlayan Рік тому

    this is great. Thank you

  • @rakshakannu5044
    @rakshakannu5044 3 роки тому

    Thank you for this! Very helpful!

  • @colechiang3963
    @colechiang3963 4 роки тому

    Thanks Mark ! You saved me from the annoying mpld3...

  • @ZuzuDoesEEAAO
    @ZuzuDoesEEAAO 6 років тому +2

    Great video! Thank you for the tutorial

  • @davidcalahorrano8681
    @davidcalahorrano8681 4 роки тому

    Amazing job man!

  • @jerome_g
    @jerome_g 5 років тому

    amazing, double thumbs up

  • @juliodidier11
    @juliodidier11 6 років тому

    Great tutorial but I have one question... Im trying to add the graph part to my python program which I run using python command in my mac prompt. Ive used this code and it does not showed up. Im using Xcode as an IDE. Does it work with it as well? if so, what is missing?

  • @dungngotan9378
    @dungngotan9378 5 років тому

    Thank you for your tutorial. I really appreciated it. However, I see that there are still some lagging when moving the IntSlider bar. Could you please show me how to reduce lagging?
    Thanks again.

  • @nadekang8198
    @nadekang8198 6 років тому

    I followed your steps exactly, but somehow is getting the error: unsupported operand type(s) for *: 'FloatSlider' and 'float', is there any solution? It seems that special.jv(s, x * freq) * operand is not allowed?

  • @hiiamlawliet480
    @hiiamlawliet480 5 років тому

    Hmm I have problem with downloading (File>downlad as> HTML) notebooks with plotly content to HTML. DO you have the same issue? Simple example is working fine but the Bessel function does not, is this because of widgets?

  • @D3_Business_Analytics
    @D3_Business_Analytics 4 роки тому

    i am getting 'module ' object is not callable error at title='nanoseconds' ?

  • @maureenxu2659
    @maureenxu2659 6 років тому

    Great tutorial! Thank you so much. I wonder if there is a way to save this plot to html? I tried pickle, but it gives an error as PicklingError: Can't pickle : it's not the same object as builtins.input

  • @sarahhein1086
    @sarahhein1086 6 років тому +1

    Great video, except for some reason the slider widget won't display on my computer. Any ideas what's happening?

    • @MarkJay
      @MarkJay  6 років тому

      Sarah Hein thanks! Are any other widgets working? You could try updating the widgets with conda. I think the command would be
      conda update ipywidgets

    • @sarahhein1086
      @sarahhein1086 6 років тому +1

      I figured it out, for anybody that's interested: import ipywidgets BEFORE importing plotly

  • @oleersoy6547
    @oleersoy6547 5 років тому

    Party! Get your plot on!!

  • @eltiodata
    @eltiodata 6 років тому +2

    Awesome! but the widget did not show up. I already imported the widget before plotly as Sarah Hein did. I updated them aswell, but it still dosen't show up. Any advice?

    • @MarkJay
      @MarkJay  6 років тому

      Carlos Ramirez Aguayo are you using anaconda?

    • @MarkJay
      @MarkJay  6 років тому

      If you're using anaconda you can run this command in a cmd window
      conda install -c conda-forge ipywidgets

    • @eltiodata
      @eltiodata 6 років тому

      Yes I am.

    • @MarkJay
      @MarkJay  6 років тому

      Carlos Ramirez Aguayo maybe reinstalling them will fix

    • @eltiodata
      @eltiodata 6 років тому +1

      finally worked, I followed your instructions and pasted the code in a new notebook and it worked.

  • @shalev1234
    @shalev1234 4 роки тому

    LOL burp at 5:02

  • @adityams1659
    @adityams1659 5 років тому

    is there any way to use ipywidgets in other text editors like pycharm and sublime

  • @AdamsTaiwan
    @AdamsTaiwan 6 років тому

    I had a no problem installing plotly, but had an error importing. Looks like python is installed in 3 different locations. One under Program files, 2 under Visual Studio folders. Jupyter was running from Anaconda, so I installed plotly there and got it working.
    Now I need to find a tutorial that explains why I have so many pythons installed.

    • @MarkJay
      @MarkJay  6 років тому

      AdamsTaiwan It looks like you've installed python a few times. Anaconda makes it easy to maintain multiple instances of python with conda environments. Check out my video on conda environments, it might help
      ua-cam.com/video/9Sfs7Fbvtdk/v-deo.html

    • @AdamsTaiwan
      @AdamsTaiwan 6 років тому

      I didn't do it intentionally. I just checked the WorkFlow and additional sdk, lib., but only one Python 64bit in Visual Studio 2017.

  • @LuizBHMG
    @LuizBHMG 6 років тому +1

    I'm using Spyder and Python 3.5. Installed everything and tried to run the code. It runs without errors, but doesn't show anything. Any idea?

    • @MarkJay
      @MarkJay  6 років тому +1

      LuizBHMG plotly is browser based so if you're running this example, it needs to run in a jupyter notebook. There's functions for running in a normal python file but the output will always be an html file which must be viewed in a browser

    • @LuizBHMG
      @LuizBHMG 6 років тому

      Thanks, Mark! Keep posting good tutorials. I'll try to find this function. Not bad if it has to be viewed in a browser, I just want to avoid installing Jupyter / Anaconda if I already have everything under pip3. Just the download of the installer was over 500 MB…

    • @LuizBHMG
      @LuizBHMG 6 років тому +1

      It worked with the function: py.offline.plot(fig, filename='file.html')
      Thanks a lot! :-)

    • @nicolasboucher-lalonde2649
      @nicolasboucher-lalonde2649 6 років тому

      Have you been able to get the whole graph with the slider? I too am using Spyder. I was able to make it work for the first parabolic graph with py.offline.plot(..), but for the others nothing displays.

  • @Berkore
    @Berkore 6 років тому

    Overall a good tutorial but in my case for some reason the code with widgets doesn't even go into update_plot function (im not working on Jupyter but the first example worked alright). What might be the problem?

    • @SaniyaKhullar
      @SaniyaKhullar 2 роки тому

      Hi Berk, plotly express may be better. Please do see this: ua-cam.com/video/T0eVfCHxGG4/v-deo.html

  • @rajeshmadhira3526
    @rajeshmadhira3526 6 років тому

    Hello Mark,
    I have a pandas data frame which i want to plot using plotly in offline mode using a jupyter notebook.
    But at the same time i also want to update the plot as and when my data frame is being modified.
    I have a for loop within which i am trying to plot , but it keeps plotting different plots. I want the same plot to be modified.
    can you suggest what i can do ?
    Thanks

    • @MarkJay
      @MarkJay  6 років тому

      sorry, I dont quite understand what you're trying to do. but there's a library called cufflinks that makes plotting with plotly and pandas very simple

  • @DrFlox
    @DrFlox 6 років тому

    Does anyone know how I could automatically calculate the mean value of all currently selected plots of the dropdown menu and plot it in the same figure?

  • @fredwooten14
    @fredwooten14 6 років тому

    Can I do this with a CSV file ? What's the FB group name? Great information!

    • @SaniyaKhullar
      @SaniyaKhullar 2 роки тому

      Hi Freddie, yes, I have a video reading in csv file and working with it for plotly visuals ua-cam.com/video/T0eVfCHxGG4/v-deo.html

  • @sekharraj8557
    @sekharraj8557 5 років тому

    iam writing plotly offline but in my jupyter it is saying no module how to solve this

  • @jashjasani5045
    @jashjasani5045 4 роки тому

    how to show plotly plots in slide deck in jupyter notebook

  • @manib20
    @manib20 4 роки тому

    i cannot able to import plotly. i installed it with pip. but when i import this it show the module error. i use ubuntu 18.04

    • @SaniyaKhullar
      @SaniyaKhullar 2 роки тому

      Hi Mani, maybe try pip install plotly express. I show this in my video for windows computer ua-cam.com/video/T0eVfCHxGG4/v-deo.html

  • @soumendrasingh1
    @soumendrasingh1 7 років тому +1

    hi.. nice video.. also plz make a video on plotly streaming

    • @MarkJay
      @MarkJay  7 років тому

      soumendra singh I'll give it a try 👍

    • @soumendrasingh1
      @soumendrasingh1 7 років тому

      also.. can we aquire data from an instrument and have refreshing graphs in offline mode?

    • @MarkJay
      @MarkJay  7 років тому

      soumendra singh I'll see if i can setup my arduino to do this. Haven't used that thing in a while so hopefully it still works

    • @soumendrasingh1
      @soumendrasingh1 7 років тому +1

      thanks in advance

  • @perinoveriza1658
    @perinoveriza1658 5 років тому

    i wanna try use plotly in pydroid 3

  • @85tarunsahni
    @85tarunsahni 5 років тому

    Command to install plotly is
    ! pip install plotly

  • @scugglebottom
    @scugglebottom 6 років тому +1

    Can this be used completely offline? I need a post processing tool for within a company so nothing can be online. Maybe Im misunderstanding how it works???

    • @MarkJay
      @MarkJay  6 років тому +1

      CoolBananas yes it can be used completely offline

    • @scugglebottom
      @scugglebottom 6 років тому

      Thanks so much for the prompt reply Mark Jay! that is great to hear, I am trying to move a load of matlab experienced engineers in our company to open sourced code like python. So many spreadsheet type analysis methods are just so slow and can no longer handle the data sizes we need to deal with. This will be a learning curve but no doubt a great way forward.
      Thank you for taking the time to make these videos!

    • @scugglebottom
      @scugglebottom 6 років тому

      I realise there is probably no complete resource but are you able to recommend a resource/s for someone to reference in trying to manually convert matlab codes to python?

    • @MarkJay
      @MarkJay  6 років тому +1

      my guess is using numpy and matplotlib will offer the easiest transition because these libraries were modelled after matlab, so the syntax is similar. those are some of the best documented libraries so I would recommend referring to the online docs.

  • @reverieyung2608
    @reverieyung2608 3 роки тому

    plotly.offline.init_notebook_mode(connected=True) # you are welcome

  • @HarshitKumar-lg1ol
    @HarshitKumar-lg1ol 6 років тому

    whats the point of uploading in 60fps?

    • @MarkJay
      @MarkJay  6 років тому

      Lucky it looks better

  • @MaheshKumar-yz7ns
    @MaheshKumar-yz7ns 5 років тому

    throwing error while importing plotly....

    • @SaniyaKhullar
      @SaniyaKhullar 2 роки тому

      Hi Mahesh, try plotly express. Please see this ua-cam.com/video/T0eVfCHxGG4/v-deo.html

  • @aquibshaikh8611
    @aquibshaikh8611 3 роки тому

    You really think this is easier than Matplotlib ?

  • @yoitslemonboy6988
    @yoitslemonboy6988 5 років тому +1

    what an unnecessarily loud keyboard lol

  • @lizzybennet5726
    @lizzybennet5726 6 років тому +1

    Not bad for a module that has to be viewed via browser, but is it possible to view the graphing results through an IDE, like PyCharm for instance? It is a matter of preference for me.

    • @MarkJay
      @MarkJay  6 років тому +1

      yes, I believe you can install a jupyter extension in pycharm which should be able to show plotly plots inline. you can also check out jupyter lab if you'd like a more IDE feel but still in the browser

    • @lamineodiallo648
      @lamineodiallo648 5 років тому

      Man i need to know how can i use notebook offline