Enhanced Jupyter Notebook File Management via Bash
- Day: 2023-03-09
- Time: 03:35 to 04:20
- Project: Dev
- Workspace: WP 2: Operational
- Status: Completed
- Priority: MEDIUM
- Assignee: Matías Nehuen Iglesias
- Tags: Command Line, Jupyter Notebook, Bash Scripting, File Management
Description
Session Goal
The session aimed to enhance file management capabilities for Jupyter Notebook files using command-line tools, focusing on listing, sorting, and searching files based on modification dates.
Key Activities
- Developed a command to find and list all
.ipynbfiles in the current directory and subdirectories, sorted by last edited time. - Updated the
findcommand to format timestamps of.ipynbfiles in a human-readable format. - Modified commands to display only the last edited date of files in
YYYY-MM-DDformat, sorted by date. - Created a command to search for
.ipynbfiles modified on a specific date, particularly March 9, 2023. - Implemented a shell command to find
.ipynbfiles modified between February 14, 2023, and the present day using aforloop. - Addressed octal interpretation issues in the
seqcommand by using the-woption for base 10 interpretation. - Developed a Bash script for finding
.ipynbfiles by date, ensuring compatibility across systems.
Achievements
- Successfully created and tested multiple commands and scripts for efficient file management of Jupyter Notebooks.
- Improved understanding and handling of date and timestamp formatting in bash scripting.
Pending Tasks
- Further testing and optimization of the Bash script for different system environments.
- Integration of these scripts into a larger automation workflow for regular file management tasks.
Evidence
- source_file=2023-03-09.sessions.jsonl, line_number=5, event_count=0, session_id=5ccae38649e8f493e91cdf814493d443ac4894354217c13986e4b6fa38c81b5f
- event_ids: []