(self, line)
| 21 | help='Search in increasingly higher folders for the `dotenv_path`') |
| 22 | @line_magic |
| 23 | def dotenv(self, line): |
| 24 | args = parse_argstring(self.dotenv, line) |
| 25 | # Locate the .env file |
| 26 | dotenv_path = args.dotenv_path |
| 27 | try: |
| 28 | dotenv_path = find_dotenv(dotenv_path, True, True) |
| 29 | except IOError: |
| 30 | print("cannot find .env file") |
| 31 | return |
| 32 | |
| 33 | # Load the .env file |
| 34 | load_dotenv(dotenv_path, verbose=args.verbose, override=args.override) |
| 35 | |
| 36 | |
| 37 | def load_ipython_extension(ipython): |