My DataViewer package overview
My DataViewer : A Lightweight Real-Time Interactive Data Viewer IDE for Python
Inspired by the Stata browser,My DataViewer is a lightweight, interactive data viewer IDE for Pyhton built with PyQt5, designed for real-time manipulation and exploration of pandas DataFrames. Featuring real-time reflection of changes to your datasets, My DataViewer offers a lightweight, intuitive way to explore and analyze full dataframes.
Integrated features:
- Real-time dataset updates: Automatically reflects changes in the DataFrame as you manipulate it.
- Embedded
IPython console: Execute Python code and interact with your data directly within the viewer. - Search and filter dataframe: Easily search and filter your data, with results reflected in real time.
- Check and scroll through the whole dataframe: Allows the user to inspect the whole dataframe ensuring the changes are correctly executed.
- Custom themes and fonts: Switch between selected themes and fonts for a personalized experience.
- Split-view layout: Includes a variable table and the main data view, allowing for easy navigation of variables and their types.
1. My DataViewer package installation
Install from PyPI using pip
!pip install mydataviewer-GUI
2. Package dependencies
- Python 3.6 or newer
- Pandas
- PyQt5
- qtconsole
- ipykernel
- jupyter_client
3. How to start My DataViewer
A. Running the Package from the Terminal using viewdata a command
After installing the package using pip install mydataviewer, you can launch the My DataViewer directly from the terminal using the command-line interface (CLI).
Steps:
- Open a terminal window.
- Activate the environment in which
My DataVieweris installed,conda activate my_env. - Run the following command to start the
My DataViewer:
viewdata
B. Running My DataViewer from the terminal using a python file
You can also launch the My DataViewer directly from the terminal by running a custom python file.
Steps:
- Create a python file, for example: 'my_file.py' or any name the user chooses.
- In the file type these lines:
from mydataviewer.view_dataframe import view_dataframe
view_dataframe()
- In a terminal window, navigate to the directory of 'my_file.py'.
- Type 'python my_file.py', and the package will start.
C. Running My DataViewer from VS Code
You can also run the package from VS Code using the terminal.
- Open your project in VS Code.
- Open the integrated terminal by going to View > Terminal.
- Type the
viewdataand pressEnter:
This will start the My DataViewer like in a regular terminal.
D. Running My DataViewer from an .exe file
You can also run the package by navigating to Scripts inside the environment in which My DataViewer is insalled.
- Navigate to directory
C:\Users\USER_NAME\Anaconda3\envs\ENV_NAME\Scripts - You will find
viewdata.exefile, open it.
This will directly start the My DataViewer. The user can also copy the viewdata.exe file to desktop or anyother directory to access it easily.
4. Interacting with the My DataViewer
After running the viewdata command, a data import box will open allowing the user to locate and open the dataframe from Import Dataframe menu. After choosing the dataframe, the My DataViewer GUI window will open, displaying the DataFrame. The window includes:
- Table View: Displays the DataFrame in a table format.
- Sidebar: Shows variable names and data types.
- Search Bar: Allows you to search within the DataFrame.
- Interactive Console: An embedded IPython console at the bottom, enabling you to manipulate the DataFrame and reflect the changes in real-time.
5. Customizing My DataViewer
Themes and Fonts
- The
My DataViewerincludesthemesandfontsmenu options for changing fonts and themes. Access these from the menu bar at the top of the DataViewer window.
Themes
- Light Theme (Default)
- Dark Theme
- Solarized Dark Theme
- Solarized Light Theme
- Monokai Theme
- Shades of Purple Theme
- Vue Theme
Fonts
- Arial
- Courier New
- Times New Roman
- Georgia
- Verdana
- Consolas
6. Working with Jupyter QtConsole
- As stated in its documentation "The Qt console is a very lightweight application that largely feels like a terminal, but provides a number of enhancements only possible in a GUI, such as inline figures, proper multi-line editing with syntax highlighting, graphical calltips, and much more."
- The embedded IPython console provides an interactive environment to manipulate your DataFrame. You can perform operations such as filtering rows, applying transformations, or generating statistics directly from within the console. Any changes made in the console are immediately reflected in the table view, ensuring real-time feedback
- The user can activate the desired environment using
conda activate. - By default the loaded dataframe is named
df. - See the documentaion here: https://qtconsole.readthedocs.io/en/stable/
7. Additional Resources
- PyQt5 Documentation: https://www.riverbankcomputing.com/static/Docs/PyQt5/
- qtconsole Documentation: https://qtconsole.readthedocs.io/en/latest/
Watch My Dataviewer video demo:
License
Released under the MIT License: Copyright (C) 2024 mydataviewer-GUI
Developed by: Mohsen Askar ceaser198511@gmail.com
Metadata
Release files for mydataviewer-GUI 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mydataviewer_gui-0.2.tar.gz | 178.8 kB | Without provenance | Details for mydataviewer_gui-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mydataviewer_GUI-0.2-py3-none-any.whl | Python 3 | none | any | Details for mydataviewer_GUI-0.2-py3-none-any.whl |
Total release size: 354.9 kB
Release files / mydataviewer_gui-0.2.tar.gz
| Download URL | mydataviewer_gui-0.2.tar.gz |
|---|---|
| Size | 178.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed5f8a1b704b12a7ceee5781b8e4eaed679fa16ba655aa5059504d5719c89589
|
|
BLAKE2b-256 checksum How to use checksums |
00e3abfec2c1266556a9782e7183549c5f1d9bcb432fa02366c8cee7acf6c8b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / mydataviewer_GUI-0.2-py3-none-any.whl
| Download URL | mydataviewer_GUI-0.2-py3-none-any.whl |
|---|---|
| Size | 176.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e299ce7682d22639ac3d461a5d095b49ee16092525b826734acc23c7dc406973
|
|
BLAKE2b-256 checksum How to use checksums |
4d86977396b79d74814fe61db7ad396af6c26e8e2248728d4122aceefaf116cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for mydataviewer-GUI 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.