It is more convenient to use csv-table when writing a table with python-sphinx

.. csv-table::
   :header: A, B, A and B
   :widths: 5, 5, 5

   False, False, False
   True, False, False
   False, True, False
   True, True, True

http://sphinx-users.jp/doc10/rest.html#id6 With the method written in, you have to adjust the number of ===== every time the length of the table element changes, which is annoying. Below is an example of how to write

=====  =====  =======
A      B      A and B
=====  =====  =======
False  False  False
True   False  False
False  True   False
True   True   True
=====  =====  =======
=====  =====  =======
A      B      A and B
=====  =====  =======
False  False  Faaaaaaaaaalse
True   False  False
False  True   False
True   True   True
=====  =====  =======

Conclusion: It is more convenient to use csv-table

reference

-Introduction to python-sphinx reStructuredText -How to use csv-table

Recommended Posts

It is more convenient to use csv-table when writing a table with python-sphinx
It is convenient to use Layers when putting a library on Lambda
It is convenient to use Icecream instead of print when debugging.
When you want to use it as it is when using it with lambda memo
It is better to use Weight Initializer when initializing with HeNormal with Chainer
It is better to use NTFS when connecting SSD to Linux to create a file server.
[python] A note when trying to use numpy with Cython
[Python] What is a tuple? Explains how to use without tuples and how to use it with examples.
Two solutions to the problem that it is hard to see the vector field when writing a vector field with quiver () of matplotlib pyplot
A memorandum when I tried to get it automatically with selenium
When it is troublesome to copy what you built with vue
A note I was addicted to when creating a table with SQLAlchemy
[Python] What is a slice? An easy-to-understand explanation of how to use it with a concrete example.
Is it deprecated to use pip directly?
Gist repository to use when you want to try a little with ansible
[Python] It was very convenient to use a Python class for a ROS program.
It is convenient to use stac_info and exc_info when you want to display traceback in log output by logging.
When writing a test using DB with django, you may be able to do it faster by using `setUpTestData ()`
When I tried to make a VPC with AWS CDK but couldn't make it
When I tried to create a virtual environment with Python, it didn't work
[OpenCV] When you want to check if it is read properly with imread
Creating a Python document generation tool because it is difficult to use sphinx
[Python] I want to use only index when looping a list with a for statement
How to use any or all to check if it is in a dictionary (Hash)
[Shell art] Only when it is a multiple of 3 and a number with 3 becomes stupid
When the variable you want to superscript with matplotlib is two or more characters
I realized that it is nonsense to use the module without thinking because it is convenient.
I tried to create a table only with Django
When writing an if statement with a regular expression
Convenient to use matplotlib subplots in a for statement
Scraping with Python-Selenium is old! ?? ・ ・ ・ How to use Pyppeteer
When it is troublesome to set up an SMTP server locally when sending mail with Python.
Use Heroku in python to notify Slack when a specific word is muttered on Twitter
Create a test with the auxiliary tool [selenium katalon recorder], which is convenient when using selenium.
Use the pushd command, which is more convenient than the cd command, to instantly return to the original directory.
Solution when you want to use cv_bridge with python3 (virtualenv)
After all it is wrong to cat with python subprocess.
Is it possible to detect similar images only with ImageHash?
When I try to push with heroku, it doesn't work
Generate a password that is easy to remember with apg
A memo when face is detected with Python + OpenCV quickly
Use a macro that runs when saving python with vscode
How to print characters as a table with Python's print function
Use aggdraw when you want to draw beautifully with pillow
Precautions when outputting to BigQuery table every hour with Luigi
Convenient writing method when appending to list continuously in Python
I want to use a virtual environment with jupyter notebook!
Automatically enable virtualenv when cd to a directory with zsh
[C language] Close () It is dangerous to retry when it fails
VIM is good to use — at least a sneak peek
When writing a query with mongo-go-driver, the warning "primitive.E composite literal uses unkeyed fields" is displayed.
[Python] What is pip? Explain the command list and how to use it with actual examples
What to do when a part of the background image becomes transparent when the transparent image is combined with Pillow
Microsoft's Deep Learning framework "CNTK" is now compatible with Python, making it much easier to use
It is good to create an environment with runtime error => venv when using pyplot backends of macosx on a virtual environment created with virtualenv.