How to Run a Python File in Jupyter Terminal: What's the Best Way to Do It?

14 Replies, 1093 Views

Thanks for all the suggestions, everyone! I tried the `!python filename.py` method, and it worked like a charm. Still feels a bit clunky, but hey, it gets the job done.

I also checked out JupyterLab’s terminal, and it’s definitely smoother than the classic one.

One quick follow-up: has anyone tried running scripts with dependencies across multiple files? I’m running into some issues with imports, and I’m not sure if it’s a path thing or something else. Any tips? Cheers!

Messages In This Thread



Users browsing this thread: 1 Guest(s)