π 2023-01-12 β Session: Configured Jupyter and Linux Environment Paths
π 13:00β13:35
π·οΈ Labels: Jupyter, Linux, Environment Setup, Vs Code, Notebook Conversion
π Project: Dev
β Priority: MEDIUM
Session Goal:
The session aimed to configure environment paths in Linux and manage Jupyter Notebook cell execution and conversion settings.
Key Activities:
-
Adding Directory to PATH in Linux:
- Instructions were provided for adding the directory
/home/matias/.local/bin
to the PATH environment variable for both bash and zsh shells. - Steps included applying changes and alternatives for temporary addition.
- Instructions were provided for adding the directory
-
Adding Interactive-Only Tags in Jupyter Notebooks:
- Steps were outlined to add βinteractive-onlyβ tags to cells in Jupyter notebooks using Visual Studio Code.
- Instructions were given for exporting the notebook to a script while excluding tagged cells.
-
Preventing Code Execution in Jupyter Notebooks:
-
Resolving Unrecognized Flag Error in Jupyter:
- Addressed the error
Unrecognized flag: '--tag'
in thejupyter nbconvert
command. - Solutions included upgrading Jupyter or using the
jupyter_execute_notebook
package.
- Addressed the error
-
Using TagRemovePreprocessor in Jupyter Notebook:
- Explained the use of the
--TagRemovePreprocessor.remove_cell_tags
flag to exclude cells with specific tags during script conversion. - Provided command examples and noted version availability.
- Explained the use of the
Achievements:
- Successfully configured environment paths and managed cell execution settings in Jupyter Notebooks.
- Resolved conversion errors and improved script export processes.
Pending Tasks:
- Verify the effectiveness of the changes in a live environment and document any further adjustments needed.