There is 3 simple source code which has oprated on jupyter. The first one is "IDF Calculator" which you should write a corpus for the program and it would calculate the IDF of all the words in it. The second one is "TF-IDF-All words" which you should write a corpus for the program and it would calculate the TF-IDF of all the words in it. The last one is "TF-IDF-Specific" which you should write a corpuse for the program and after that you need to tell the program which words do you want to calculate it's TF-IDF.
im-t4ha/TF-IDF-calculator-Source-code
Find TF-IDF of any word in any corpus (You can enter the corpus)
Jupyter Notebook