{ "info": { "author": "Eric Pellegrini", "author_email": "pellegrini@ill.fr", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "Overview\n========\n**hdfviewer** is a python3 package for inspecting HDF files in the context of **Jupyter Lab** notebook.\n\n.. overview-begin\n\nIt represents each group found in the HDF file as an accordion made of the following subitems:\n\n- **attributes**: contains the HDF attributes of this group\n- **groups**: contains the HDF subgroups of this group \n- **datasets**: contains the HDF datasets of this group\n\nIf one of these subitems is empty (e.g. no attributes defined for a given group) the corresponding subitem is omitted.\nWhen one reaches a HDF dataset, informations about the dataset are collected (dimensionality, numeric type, attributes ...) and displayed in a Jupyter output widget. In case of 1D, 2D or 3D dataset, a view of the dataset is also displayed. Depending on the dimensionality of the dataset the display will consist in:\n\n- **1D**: simple MatPlotLib 1D plot\n- **2D**: matrix view of the dataset\n- **3D**: matrix view of the dataset\n\nIn case of **2D** and **3D** datasets, the matrix view is made of a 2D image of the selected frame of the dataset (always `0` for 2D datasets) with a 1D column-projection view of the dataset on its top and a 1D row-projection view of the dataset on its right. The matrix view is interactive with the following interactions:\n\n- **2D**:\n\n - toggle between cross and integration 1D potting mode. In cross plot mode, the 1D projection views represents resp. the row and column of the matrix image point left-clicked by the user. In integration plot mode, the 1D projection views represents the sum over resp. the row and column of the image. To switch between those two modes, press the **i** key.\n- **3D**:\n\n - toggle between cross and integration 1D potting mode. See above.\n - go to the last frame by pressing the **pgdn** key.\n - go to the first frame by pressing the **pgup** key.\n - go to the next frame by pressing the **down** or the **right** keys or wheeling **down** the mouse wheel\n - go to the previous frame by pressing the **up** or the **left** keys or wheeling **up** the mouse down\n - go the +n (n can be > 9) frame by pressing *n* number followed by the **down** or the **right** keys \n - go the -n (n can be > 9) frame by pressing *n* number followed by the **up** or the **left** keys \n\n.. overview-end\n\nUsage in a notebook\n===================\n\n.. usage-begin\n\n.. code-block:: python\n :caption: Usage in a notebook\n\n %matplotlib ipympl\n\n import h5py\n from hdfviewer.widgets.HDFViewer import HDFViewer\n from hdfviewer.widgets.PathSelector import PathSelector\n\n path = PathSelector(extensions=[\".hdf\",\".h5\",\".nxs\"])\n path.widget\n\n if path.file:\n hdf5 = h5py.File(path.file,\"r\")\n display(HDFViewer(hdf5))\n\n.. usage-end\n\nPrerequesites\n=============\n- python3 + pip\n\nInstallation\n============\nsee `here `_ for complementary info\n\n- `cd` to the directory where lies the `setup.py` file\n- pip3 install --user .\n\nTroubleshootings\n================\n\nYou running the widget on JupyterLab you may have get some text describing the widget instead of the actual widget. This means that you may have to install \nthe `jupyterlab-manager` and `jupyter-matplotlib` extensions. To check this please run the following command:\n\n- `jupyter labextension list`\n\nIf none or only one of these extensions are mentionned, please run the following commands to install the missing one(s):\n\n- `jupyter labextension install @jupyter-widgets/jupyterlab-manager`\n- `jupyter labextension install jupyter-matplotlib`\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://code.ill.fr/panosc/data-analysis-services/hdf-data-viewer", "keywords": "", "license": "MIT", "maintainer": "Eric Pellegrini", "maintainer_email": "pellegrini@ill.fr", "name": "hdfviewer", "package_url": "https://pypi.org/project/hdfviewer/", "platform": "Unix", "project_url": "https://pypi.org/project/hdfviewer/", "project_urls": { "Homepage": "https://code.ill.fr/panosc/data-analysis-services/hdf-data-viewer" }, "release_url": "https://pypi.org/project/hdfviewer/0.11.0/", "requires_dist": [ "numpy", "matplotlib", "h5py", "jupyterlab", "ipywidgets", "ipympl" ], "requires_python": "", "summary": "HDF viewer for Jupyter lab notebooks", "version": "0.11.0" }, "last_serial": 4869179, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "4ece9c073446ffe1ad24905748a29230", "sha256": "c38621ab39e864026036f0325421adfb37175d9fa7ebde46cf2b3b59b84c5095" }, "downloads": -1, "filename": "hdfviewer-0.10.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4ece9c073446ffe1ad24905748a29230", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19210, "upload_time": "2019-02-20T13:32:35", "url": "https://files.pythonhosted.org/packages/46/c9/2596ad3b5bc583278292f54e94c3bb65bbeb54aa65119cfba536c59e13a7/hdfviewer-0.10.0-py3-none-any.whl" } ], "0.10.1": [ { "comment_text": "", "digests": { "md5": "718318cd5459e2eb1ded915a9d4ba499", "sha256": "bccb255bc1da12c72551f63a9b503c53ee2cdae9f6fbfcccf15f246780c7b08c" }, "downloads": -1, "filename": "hdfviewer-0.10.1-py3-none-any.whl", "has_sig": false, "md5_digest": "718318cd5459e2eb1ded915a9d4ba499", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19210, "upload_time": "2019-02-21T10:07:03", "url": "https://files.pythonhosted.org/packages/8e/5d/f9d9886848a3c124020556e153ae2a4b23e9377a4dd42b0e6f5b218397b5/hdfviewer-0.10.1-py3-none-any.whl" } ], "0.10.2": [ { "comment_text": "", "digests": { "md5": "c568b3984ed07ec1b536f3db03f2c1ff", "sha256": "a284c55fbe4f7d52fcbcf843b3c01b92dd2591b6d63bcf98129c9c8836ccbb35" }, "downloads": -1, "filename": "hdfviewer-0.10.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c568b3984ed07ec1b536f3db03f2c1ff", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19216, "upload_time": "2019-02-22T13:30:20", "url": "https://files.pythonhosted.org/packages/3c/82/94f9c3b5d397adab0f9ae347dae64d37f77f3631322bbfe77423e6a08ef4/hdfviewer-0.10.2-py3-none-any.whl" } ], "0.11.0": [ { "comment_text": "", "digests": { "md5": "7e90affb50b6edb89d7699830431f5f9", "sha256": "3e2b99812a5664918381d5262ab82ae8d68ceff40205167d841ec3468cc9778a" }, "downloads": -1, "filename": "hdfviewer-0.11.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7e90affb50b6edb89d7699830431f5f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19239, "upload_time": "2019-02-26T10:35:41", "url": "https://files.pythonhosted.org/packages/71/60/26d9b99f7d4ceb139c349a542d80d43f87ce6ce206d4b91ef2d0961ac415/hdfviewer-0.11.0-py3-none-any.whl" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "ab28b1742511064213289d3906fd8741", "sha256": "b39a9ea3cc7bf14942abd2e23cc398af901bdbdd022680b861932bcb8292549d" }, "downloads": -1, "filename": "hdfviewer-0.8.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ab28b1742511064213289d3906fd8741", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18135, "upload_time": "2019-02-15T10:27:51", "url": "https://files.pythonhosted.org/packages/e1/97/259fbde4ee6d8a0bb341bce5d44ef8bcd0298c166f2014be4dbac043a2a8/hdfviewer-0.8.2-py3-none-any.whl" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "cb2653be682cceca0958e67fdcffcb46", "sha256": "f064dbc2ebfe8412df7e8f1f56e5dceb5190b7179a90504915b507f3946f7475" }, "downloads": -1, "filename": "hdfviewer-0.9.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cb2653be682cceca0958e67fdcffcb46", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19145, "upload_time": "2019-02-19T15:30:30", "url": "https://files.pythonhosted.org/packages/0d/2e/ad5359c8c60e16f21b43a4180038083a3494b1650fb70c5ca43aba48af6f/hdfviewer-0.9.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7e90affb50b6edb89d7699830431f5f9", "sha256": "3e2b99812a5664918381d5262ab82ae8d68ceff40205167d841ec3468cc9778a" }, "downloads": -1, "filename": "hdfviewer-0.11.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7e90affb50b6edb89d7699830431f5f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19239, "upload_time": "2019-02-26T10:35:41", "url": "https://files.pythonhosted.org/packages/71/60/26d9b99f7d4ceb139c349a542d80d43f87ce6ce206d4b91ef2d0961ac415/hdfviewer-0.11.0-py3-none-any.whl" } ] }