jupyter notebook --port 3100 --ip 0.0.0.0 --no-browser
now run on IP address of the server like 10.10.5.49:3100/
use %%bash as the first line of the cell, will make the cell terminal
%%bash
#Apply Lambda function to pandas | |
# if we require other column as a logic for the new column | |
df = df.assign(Product=lambda x: (x['Field_1'] * x['Field_2'] * x['Field_3'])) | |
# if we need to modify all the element of selected entity based only on that entity | |
# this will in-place update all the element | |
df = df.apply(lambda x: np.square(x) if x.name in ['a', 'e', 'g'] else x, axis=1) | |
# compare from the previous element of the colums use shift |
Vbox setup: | |
1. using the 7.0 and the iso file in my software. | |
download oracleVM: https://download.virtualbox.org/virtualbox/7.0.4/VirtualBox-7.0.4-154605-Win.exe | |
download ubuntu image: https://ubuntu.com/download/desktop | |
vboxuser, changeme, foghorn9152 | |
2. Adjust the screen resolution: | |
display>video Memory> 128MB | |
enable 3d acceleration |
go to : https://github.com/settings/tokens | |
generate a new token with all the repo access. | |
my token : | |
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 | |
use |
https://towardsdatascience.com/python-environment-setup-for-deep-learning-on-windows-10-c373786e36d1 | |
this article has all the links in short : | |
step-1 Install driver | |
https://www.nvidia.com/en-us/geforce/geforce-experience/ | |
step-2: Install CUDA toolkit | |
https://developer.nvidia.com/cuda-toolkit-archive | |
Note: download 11.x for tf2 and 10.x for tf1 |
Install python AMDx64 version of desired python release (3.6, 3.8 etc) we can keep multiple python version together | |
In the end of this installation select the option to update the python_path variable this will make the python availaible in cmd | |
``` | |
which Python | |
./venv/Scripts/activate | |
deactivate | |
``` | |
Create venv : | |
-p : give path to specifc version of python to be used by venv |
Internally setupvars.sh edit two environment variable to include all openvino directory : | |
PYTHONPATH | |
PATH | |
Now these variable could easily be setup by running "C:\Program Files (x86)\IntelSWTools\openvino_2021.2.185\bin\setupvars.bat" in the same terminal in which you will run python but this will be temporary i.e. will work only in the current windows | |
To avoid running setupvars.sh everytime, you can permanently edit edit the environment variable as follows : | |
Copy the openvino python directory | |
source: C:\Program Files (x86)\IntelSWTools\openvino_2021.2.185\python\python3.8\openvino | |
dest : C:\\Users\goyal\Anaconda3\envs\tf2-gpu\lib\site-packages |
# do image augmenation on a folder | |
import json; | |
import os | |
import shutil | |
import cv2; | |
import numpy as np | |
import random | |
import imgaug as ia | |
import copy |
import { Component, OnInit, AfterViewInit } from '@angular/core'; | |
import { ViewChild } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent implements OnInit,AfterViewInit { | |
@ViewChild('videoElement') videoElement: any; |