I am wondering why Python does not find modules in the same folder when code is run in a cell. I use Spyder and when I run a cell
#%% import cell
from gym import Env
from gym.spaces import Discrete, Box, Tuple
import numpy as np
import random
import pandas as pd
import Run_Simulations
import SetUpScenarios
I get the error messages that the modules Run_Simulations
and SetUpScenarios
are not found altough they are in the same folder. Strangely when not running the single cell but the whole code (where there are no other import instructions or anything similar), the modules can be found and are correctly imported.