source: https://code.visualstudio.com/blogs/2019/10/03/remote-ssh-tips-and-tricks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pip install panel==0.12.4 bokeh==2.4.0 holoviews==1.14.6 hvplot==0.7.3 shapely==1.7.1 | |
| # panel serve holoviz_linked_brushing.py --autoreload --show | |
| import hvplot.pandas | |
| import holoviews as hv | |
| import panel as pn | |
| from bokeh.sampledata.iris import flowers | |
| pn.extension(sizing_mode="stretch_width") | |
| hv.extension("bokeh") |
I would suggest you to use conda (Ananconda/Miniconda) to create a separate environment and
install tensorflow-gpu, cudnn and cudatoolkit. Miniconda has a much smaller footprint
than Anaconda. I would suggest you to install Miniconda
if you do not have conda already.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os; import psutil; import timeit | |
| from datasets import load_dataset | |
| mem_before = psutil.Process(os.getpid()).memory_info().rss >> 20 | |
| wiki = load_dataset("wikipedia", "20200501.en", split='train') | |
| mem_after = psutil.Process(os.getpid()).memory_info().rss >> 20 | |
| print(f"RAM memory used: {(mem_after - mem_before)} MB") | |
| s = """batch_size = 1000 | |
| for i in range(0, len(wiki), batch_size): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Local: | |
| # https://stackoverflow.com/questions/21151178/shell-script-to-check-if-specified-git-branch-exists | |
| # test if the branch is in the local repository. | |
| # return 1 if the branch exists in the local, or 0 if not. | |
| function is_in_local() { | |
| local branch=${1} | |
| local existed_in_local=$(git branch --list ${branch}) | |
| if [[ -z ${existed_in_local} ]]; then | |
| echo 0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c | |
| [metadata] | |
| name = {name} | |
| version = file: {name}/_version.txt | |
| author = Martin Larralde | |
| author_email = martin.larralde@embl.de | |
| url = https://github.com/althonos/{name} | |
| description = {description} | |
| long_description = file: README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Some options that may or may not be applicable to you | |
| [user] | |
| name = Zach Olivare | |
| email = zach@olivare.net | |
| [push] | |
| default = upstream | |
| [core] | |
| autocrlf = input # Force replacing CRLF line endings with LF | |
| ignorecase = false | |
| # editor = code --wait |

