A very basic questions on importing modules created locally.
I am unable to import a locally created module. The module exists in the current working directory
Am i missing something?
I'm finding local library names must begin with a capital letter. If I keep all my local files in a folder called Code
, I can import them; if it's called code
, I cannot. (The names of subfolders and subfiles don't seem to suffer that restriction.)
This appears to be a Jupyter restriction, not a Python one -- from the command-line Python repl I can import whatever local .py
file I want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With