Problem with Jupiter libraries for data analysis

Good morning!
I installed Jupiter notebook from Anaconda package and the libraries that I need for data analysis for example h5py, numpy, scipy, matplotlib.
This is my code:
import h5py
import math
import numpy as np
import scipy
import matplotlib.pyplot as plt
from scipy import signal
from scipy import get_window

plt.rcParams[“figure.figsize”]=(20,3)
dir_name="" #“C:\Users\elyon\Desktop\JUPITER”
file_name= dir_name+“CSES_01_EFD_3_L02_A1_050581_20190101_001006_20190101_004451_000.h5”

This is the problem when I run the code:

ImportError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_14332/2709162310.py in
5 import matplotlib.pyplot as plt
6 from scipy import signal
----> 7 from scipy import get_window #window - gaussiana che smussa i bordi x evitare discontinuità forma onda
8
9 plt.rcParams[“figure.figsize”]=(20,3)

ImportError: cannot import name ‘get_window’ from ‘scipy’ (C:\Users\elyon\anaconda3\lib\site-packages\scipy_init_.py)

It seems that there are not any packages into the libraries.
Can I ask you some suggestions to solve the problem??
Thank you

A quick search in the scipy docs suggests get_window might be exported from scipy.signal. Perhaps it moved during an API update?

If it really is specific to installation on windows with anaconda, they also have a forum where someone might have seen this issue.

1 Like