{"id":611,"date":"2020-08-13T01:22:56","date_gmt":"2020-08-13T08:22:56","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=611"},"modified":"2020-08-13T01:26:23","modified_gmt":"2020-08-13T08:26:23","slug":"92-batch-bat-file-to-update-anaconda","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2020\/08\/92-batch-bat-file-to-update-anaconda\/","title":{"rendered":"#92 Batch (bat) file to update Anaconda"},"content":{"rendered":"<p>#92 Batch (bat) file to update Anaconda:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\nREM file: update_conda.bat\nset root=C:\\ProgramData\\Anaconda3\ncall %root%\\Scripts\\activate.bat %root%\ncall conda update --all\npause\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#92 Batch (bat) file to update Anaconda: REM file: update_conda.bat set root=C:\\ProgramData\\Anaconda3 call %root%\\Scripts\\activate.bat %root% call conda update &#8211;all pause<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,2],"tags":[],"class_list":["post-611","post","type-post","status-publish","format-standard","hentry","category-batch","category-python"],"modified_by":null,"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-9R","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1099,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/11\/191-update-spyder-from-v-5-0-5-to-v5-1-5\/","url_meta":{"origin":611,"position":0},"title":"#191 Update Spyder from v.5.0.5 to v5.1.5","author":"gantovnik","date":"2021-11-15","format":false,"excerpt":"Regular instructions to update Spyder don't work in this case because there are some incompatible dependencies between Spyder 5.0.5 and 5.1.5. [code language=\"python\"] conda update anaconda conda install spyder=5.1.5 [\/code] It generates the following error: \"Solving environment: failed with initial frozen solve. Retrying with flexible solve.\" To work around this\u2026","rel":"","context":"In &quot;python&quot;","block_context":{"text":"python","link":"https:\/\/gantovnik.com\/bio-tips\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":688,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/09\/121-windows-batch-script-to-run-every-nastran-input-file-in-folder\/","url_meta":{"origin":611,"position":1},"title":"#121: Windows batch script to run every Nastran input file in folder","author":"gantovnik","date":"2020-09-28","format":false,"excerpt":"This is an example of a Windows bat file to run Nastran for every *.dat file in the current folder. It also calculates the total Nastran execution time. Of course, you should change the path to nastran.exe. The nice thing here is that script uses variable set MyPath=%cd%, so you\u2026","rel":"","context":"In &quot;batch&quot;","block_context":{"text":"batch","link":"https:\/\/gantovnik.com\/bio-tips\/category\/batch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":851,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/01\/151-script-to-create-multi-volume-rar-archive-with-specific-size-of-each-volume\/","url_meta":{"origin":611,"position":2},"title":"#151 Script to create multi-volume rar archive with specific size of each volume","author":"gantovnik","date":"2021-01-27","format":false,"excerpt":"#151 Script to create multi-volume rar archive with a specific size of each volume. I request 3GB for each volume. Create a bat file with the following code: [code language=\"python\"] SET WINRAR=\"C:\\Program Files\\WinRAR\" for \/D %%f in (\"D:\\create_rars\\*\") do ( %WINRAR%\\RAR.exe a -ep1 -r -v3G -idcdp -t -df \"D:\\create_rars\\%%~nxf.rar\" \"%%f\"\u2026","rel":"","context":"In &quot;batch&quot;","block_context":{"text":"batch","link":"https:\/\/gantovnik.com\/bio-tips\/category\/batch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":601,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/08\/89-windows-batch-bat-script-that-counts-from-10-to-0-by-2\/","url_meta":{"origin":611,"position":3},"title":"#89 Windows batch (bat) script that counts from 10 to 0 by 2","author":"gantovnik","date":"2020-08-13","format":false,"excerpt":"#89 Windows batch (bat) script that counts from 0 to 10 by 2: [code language=\"python\"] for \/l %%B in (10,-2,0) do echo %%B pause [\/code]","rel":"","context":"In &quot;batch&quot;","block_context":{"text":"batch","link":"https:\/\/gantovnik.com\/bio-tips\/category\/batch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":599,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/08\/88-windows-batch-bat-script-that-counts-from-0-to-10-by-increments-of-2\/","url_meta":{"origin":611,"position":4},"title":"#88 Windows batch (bat) script that counts from 0 to 10 by 2","author":"gantovnik","date":"2020-08-12","format":false,"excerpt":"#88 Windows batch (bat) script that counts from 0 to 10 by 2: [code language=\"python\"] for \/l %%B in (0,2,10) do echo %%B pause [\/code]","rel":"","context":"In &quot;batch&quot;","block_context":{"text":"batch","link":"https:\/\/gantovnik.com\/bio-tips\/category\/batch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1943,"url":"https:\/\/gantovnik.com\/bio-tips\/2023\/08\/385-scatterplot-matrix-using-seaborn-library\/","url_meta":{"origin":611,"position":5},"title":"#385 Scatterplot matrix using seaborn library","author":"gantovnik","date":"2023-08-13","format":false,"excerpt":"[code language=\"python\"] #Scatterplot matrix using seaborn library import matplotlib.pyplot as plt #conda install -c anaconda seaborn import seaborn as sns sns.set_theme(style=\"ticks\") def main(): df = sns.load_dataset(\"penguins\") sns.pairplot(df, hue=\"species\") plt.savefig(\"ex385.png\", dpi=100) plt.show() if __name__ == '__main__': main() [\/code]","rel":"","context":"In &quot;plot&quot;","block_context":{"text":"plot","link":"https:\/\/gantovnik.com\/bio-tips\/category\/plot\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2023\/08\/ex385.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2023\/08\/ex385.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2023\/08\/ex385.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2023\/08\/ex385.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2023\/08\/ex385.png?resize=1050%2C600&ssl=1 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=611"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/611\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}