.m module cached in Jupyter notebook environment
Afficher commentaires plus anciens
I am using jpyter notebook with matlab engine running in the environment. I have a directory of .m files which I import using
addpath(my_folder);
I need to make a change to one of the files in this my_folder directory. However, everytime I ran my notebook, it still loads the old version. Even when I rename the entire directory, it still finds the old one.
I tried various techniques I found such as clear, rehash, modify using Matlab gui. nothing worked. Please tell me how to get my jupyter notebook to flush the cache and pick up the new .m file.
4 commentaires
Shubham Khatri
le 1 Juin 2021
One Clarifying question, are you using jupyter matlab proxy?
Bruce Ho
le 6 Juin 2021
Walter Roberson
le 6 Juin 2021
Have you experimented with using "clear" and the name of the file being modified (without the extension) ? That should remove any caching of the file.
Bruce Ho
le 6 Juin 2021
Réponses (1)
Shubham Khatri
le 1 Juin 2021
0 votes
Hello,
To my understanding you are trying too many things related to MATLAB. I would recommand you to just try to restarting jupyter service and try again.
Hope it helps
1 commentaire
Bruce Ho
le 6 Juin 2021
Catégories
En savoir plus sur Integration with Online Platforms dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!