Skip to content

Commit

Permalink
Install plugin with --user option for persistence (#744)
Browse files Browse the repository at this point in the history
To ensure the package remains installed after server restarts, install the package into the home directory using the --user option. This directory is mounted as a  Docker volume, ensuring the package is preserved across server restarts.
  • Loading branch information
superstar54 committed May 23, 2024
1 parent 16301ba commit e044f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin_list.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
"\n",
"def install_package(package_name, pip, github, output_container, message_container, install_btn, remove_btn, accordion, index):\n",
" if pip:\n",
" command = [\"pip\", \"install\", pip]\n",
" command = [\"pip\", \"install\", pip, \"--user\"]\n",
" else:\n",
" command = [\"pip\", \"install\", \"git+\" + github]\n",
" command = [\"pip\", \"install\", \"git+\" + github, \"--user\"]\n",
" message_container.value = f\"\"\"<div style=\"color: #000000;\">Installing {package_name}...</div>\"\"\"\n",
" result = execute_command_with_output(command, output_container, install_btn, remove_btn)\n",
" # if the package was installed successfully\n",
Expand Down

0 comments on commit e044f93

Please sign in to comment.