About 55,600,000 results
Open links in new tab
  1. What is the difference between a .py file and .ipynb file?

    61 .py is a regular python file. It's plain text and contains just your code. .ipynb is a python notebook and it contains the notebook code, the execution results and other internal settings …

  2. python - What is __init__.py for? - Stack Overflow

    The __init__.py file can contain the same Python code that any other module can contain, and Python will add some additional attributes to the module when it is imported. But just click the …

  3. How can I manually generate a .pyc file from a .py file

    For some reason, I can not depend on Python's "import" statement to generate .pyc file automatically Is there a way to implement a function as following? def py_to_pyc(py_filepath, …

  4. How do I write good/correct package __init__.py files

    Does the actual __init__.py for the email package follow this guideline? I see a single line docstring that doesn't do much to explain "how the various components within the package …

  5. Scheduling a .py file on Task Scheduler in Windows 10

    So, I am trying to schedule directly my .py file with Task Scheduler but every time I do it and then run it to see if works, a window pops up and asks me how I would like to open the program?-.- …

  6. How do I call a function from another .py file? [duplicate]

    file.py contains a function named function. How do I import it? from file.py import function (a,b) The above gives an error: ImportError: No module named 'file.py'; file is not a package

  7. How do I run Python script using arguments in windows command …

    If "hello.py" is in a PATH directory, and running hello 1 1 doesn't pass the command-line arguments, then the .py file association is broken. If CMD or PowerShell doesn't find …

  8. How to list all installed packages and their versions in Python?

    Is there a way in Python to list all installed packages and their versions? I know I can go inside python/Lib/site-packages and see what files and directories exist, but I find this very awkward. ...

  9. python - What is conftest.py for in Pytest? - Stack Overflow

    I searched the entire pytest documentation for conftest.py and although there are many references to doing this thing or doing that thing with a conftest file, nowhere in the …

  10. How do I import other Python files? - Stack Overflow

    How do I import files in Python? I want to import: a file (e.g. file.py) a folder a file dynamically at runtime, based on user input one specific part of a file (e.g. a single function)