.m module cached in Jupyter notebook environment

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

One Clarifying question, are you using jupyter matlab proxy?
not sure what you mean by proxy. this is the instruction I followed for installation.
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.
yes you can see in my original post, that I have tried clear.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shubham Khatri
Shubham Khatri 2021년 6월 1일

0 개 추천

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

no sir. I certainly have tried that multiple times. Has anyone actually done this successfully?
I don't think "trying too many things related to MATLAB" is any thing more than your opinion. I do these things because they are needed in my environment.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Integration with Online Platforms에 대해 자세히 알아보기

제품

태그

질문:

2021년 5월 26일

댓글:

2021년 6월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by