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!
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?
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?
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?
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?
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
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?
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.
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?
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
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…
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.
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
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.
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
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???
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!
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?
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.
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.
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
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
Also a video with dash would be cool!
Thanks! That's very nice of you. haven't used dash but will try it out.
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!
Fantastic! I don’t have learn to use Tableau. Now to add this to my Udemy learning. Subbed
Sayan Chowdhury i think tableau is best for visualization. why i will type code for visualization ,right ?
I love Plotly
Thank you for this! Very helpful!
this was extremely useful for me thanks.
Amazing job man!
Great video! Thank you for the tutorial
amazing, double thumbs up
Thanks for the tutorial..I really enjoy it
this is great. Thank you
i am getting 'module ' object is not callable error at title='nanoseconds' ?
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?
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?
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?
is there any way to use ipywidgets in other text editors like pycharm and sublime
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?
Carlos Ramirez Aguayo are you using anaconda?
If you're using anaconda you can run this command in a cmd window
conda install -c conda-forge ipywidgets
Yes I am.
Carlos Ramirez Aguayo maybe reinstalling them will fix
finally worked, I followed your instructions and pasted the code in a new notebook and it worked.
LOL burp at 5:02
Great video, except for some reason the slider widget won't display on my computer. Any ideas what's happening?
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
I figured it out, for anybody that's interested: import ipywidgets BEFORE importing plotly
Party! Get your plot on!!
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
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?
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.
iam writing plotly offline but in my jupyter it is saying no module how to solve this
Thanks Mark ! You saved me from the annoying mpld3...
how to show plotly plots in slide deck in jupyter notebook
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?
Hi Berk, plotly express may be better. Please do see this: ua-cam.com/video/T0eVfCHxGG4/v-deo.html
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?
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
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…
It worked with the function: py.offline.plot(fig, filename='file.html')
Thanks a lot! :-)
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.
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
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
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.
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
I didn't do it intentionally. I just checked the WorkFlow and additional sdk, lib., but only one Python 64bit in Visual Studio 2017.
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
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
i wanna try use plotly in pydroid 3
Can I do this with a CSV file ? What's the FB group name? Great information!
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
hi.. nice video.. also plz make a video on plotly streaming
soumendra singh I'll give it a try 👍
also.. can we aquire data from an instrument and have refreshing graphs in offline mode?
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
thanks in advance
Command to install plotly is
! pip install plotly
whats the point of uploading in 60fps?
Lucky it looks better
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???
CoolBananas yes it can be used completely offline
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!
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?
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.
throwing error while importing plotly....
Hi Mahesh, try plotly express. Please see this ua-cam.com/video/T0eVfCHxGG4/v-deo.html
plotly.offline.init_notebook_mode(connected=True) # you are welcome
You really think this is easier than Matplotlib ?
what an unnecessarily loud keyboard lol
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.
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
Man i need to know how can i use notebook offline