JupyterLab Dictionary Content Output Format - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: JupyterLab Dictionary Content Output Format (/thread-29475.html) |
JupyterLab Dictionary Content Output Format - Ourkid123uk - Sep-04-2020 Hi, Brand new to Python and this my first question on the forum (please be gentle ) I have defined a dictionary with separate keys and values as lists, shown below; people = { "first": ["Corey", "Jane", "John"], "last": ["Shafer", "Doe", "Millard"], "email":["[email protected]","[email protected]","[email protected]"] }When i print the contents of the dictionary in "JupyterLab" the output is then returned in the following format; {'first': ['Corey', 'Jane', 'John'], 'last': ['Shafer', 'Doe', 'Millard'], 'email': ['[email protected]', '[email protected]', '[email protected]']}When i do the same using "Spyder" the output is returned with each keys contents list on the same line, as shown below; {'first': ['Corey', 'Jane', 'John'], 'last': ['Shafer', 'Doe', 'Millard'], 'email': ['[email protected]', '[email protected]', '[email protected]']}How do i get "JupyterLab" to output the contents of the dictionary the same format as "Spyder" does, all on a single line? Or at least each keys list completely on each keys line. Must be a setting in "JupyterLabs" perhaphs? Many thanks for taking your time, any help is really appreciated. |