Import modules that are often used when starting the python interpreter

When started with the -i option, it enters interactive mode after reading the file at startup. It will be easier if you write the import declarations of the basic modules that you often import together.

myStartup.py


import os
import datetime
import hogehoge
import .....

Prepare a file like Start the interpreter with the -i option as shown below. It can also be used with ipython.

python -i myStartup.py

Recommended Posts

Import modules that are often used when starting the python interpreter
Avoiding the phenomenon that blank lines are inserted when outputting Python CSV
I tried to summarize the methods that are often used when implementing basic algo in Quantx Factory
Addition of fixed processing when starting python interpreter
Astro: Python modules / functions often used for analysis
A collection of Numpy, Pandas Tips that are often used in the field
Are Php / Ruby / Python that only runs when the file is called directly
[Python] Solution to the problem that elements are linked when copying a list
Python note: When the pip command cannot be used
Dynamically import / reload modules that have changed in Python
Modules that may go through the shell in Python
Commands often used in the development environment during Python implementation
Scripts that can be used when using bottle in Python
I want to run the Python GUI when starting Raspberry Pi
Verification of the theory that "Python and Swift are quite similar"
Python standard module that can be used on the command line
Check the behavior when assigning Python
[Python] The stumbling block of import
Python --Symbols used when performing operations
Eliminate WARNING when starting Python IDLE
When Selenium tells me that the Chrome driver version is different (Python)
If you are told cannot by Python import, review the file name
Enum types that enter the standard library from Python 3.4 are still useful
Features of regular expression modules that I often use personally in Python
[Python3] Code that can be used when you want to change the extension of an image at once