jupyter-notebook

How to cure Google Colab with miniconda installed and get on import ModuleNotFoundError?

How to cure Google Colab with miniconda installed and get on import ModuleNotFoundError? Question: I have used Google Colab for more than half a year successfully for a special application. In the beginning of my Colab-notebook script I install conda and use conda-forge for installing a key Python package. At the beginning of this year …

Total answers: 1

Playing a video with captions in Jupyter notebook

Playing a video with captions in Jupyter notebook Question: How to play a video with captions in Jupyter notebook? With code snippets from these post, I’ve tried to play a video inside jupyter notebook: How can I play a local video in my IPython notebook? how play mp4 video in google colab from IPython.display import …

Total answers: 2

Unable to reference a excel marco file while running a juypter-notebook from another notebook

Unable to reference a excel marco file while running a juypter-notebook from another notebook Question: I’m trying to run a jupyter notebook file called Seg_pivot.ipynb from main.ipynb. The main.ipynb has one line of code: %run "fi/Seg_pivot.ipynb" The current directory structure looks like the following: The Seg_pivot.ipynb runs a module in the MyMacro, used to style …

Total answers: 1

ImportError: DLL load failed while importing _fblas

ImportError: DLL load failed while importing _fblas Question: While I was importing statsmodels.api as sm it shows this error, how can I fix it? the same error appeared when I tried to import scipy.stats. And both of them worked well while doing the import statsmodel and import scipy ErrorDescription ErrorDescription I tried to reinstall it …

Total answers: 1

Sending json data from localhost Jupyter notebook to vue page

Sending json data from localhost Jupyter notebook to vue page Question: deleted. oo -> del <- aa post client 30 characters Asked By: Jack D || Source Answers: In the Python script, you’re making a POST request. The error message from your other code says you’re making a GET request, which the endpoint doesn’t handle …

Total answers: 1

UnboundLocalError: local variable 'bmi' referenced before assignment line 38

UnboundLocalError: local variable 'bmi' referenced before assignment line 38 Question: I am making a BMI calculator with plotly Dash. I’m trying to code it where the user choses the unit of the input for weight and height, however its throwing an error on line 38: UnboundLocalError: local variable ‘bmi’ referenced before assignment from dash import …

Total answers: 1

How do I remove float and NaN

How do I remove float and NaN Question: I’m trying to convert a list with over 20 rows and convert into a data frame but I’m running into an issue. When I convert my list, it returns a float and nan in some of the numbers in my data frame. Is there a way to …

Total answers: 2

Running all cells again adding new rows instead of return new dataframe

Running all cells again adding new rows instead of return new dataframe Question: I am creating a class just like lazypredict library but with k fold support and return a data frame withh the mean score of every model every thing works and I can print dataframe but when I run again it add more …

Total answers: 1

Trim image thigh Using python with jupyter notebook

Trim image thigh Using python with jupyter notebook Question: Hey everyone I try to trim an image thigh, I tried many functions but no one gives the good results that I need. input: png image like this output: png image trimmed I have many images like these and I want to trim thight I can. …

Total answers: 1

Error message 'Data frame name not defined' when plotting histogram in python

Error message 'Data frame name not defined' when plotting histogram in python Question: I want to plot a histogram for all numerical columns in my data frame. An error message keeps on coming up saying my data frame name (Cab_Data) is not defined. I have installed and imported matplotlib as plt, I used the code …

Total answers: 2