Watch the video here https://www.youtube.com/watch?v=5CMmjNt_p48
Steps to follow to run your python code without typing python filename.py.
You can simply run by typing filename if you follow these simple steps.
## Create the virtual environment | |
conda create -n 'environment_name' | |
## Activate the virtual environment | |
conda activate 'environment_name' | |
## Make sure that ipykernel is installed | |
pip install --user ipykernel | |
## Add the new virtual environment to Jupyter |
Steps to follow to run your python code without typing python filename.py.
You can simply run by typing filename if you follow these simple steps.
This configuration worked for me, hope it helps
It is based on: https://becominghuman.ai/deep-learning-gaming-build-with-nvidia-titan-xp-and-macbook-pro-with-thunderbolt2-5ceee7167f8b
and on: https://stackoverflow.com/questions/44744737/tensorflow-mac-os-gpu-support
#!/bin/bash | |
# 1. Install CUDA | |
echo "Installing CUDA..." | |
# Only install if CUDA is not already installed. | |
if ! dpkg-query -W cuda; then | |
# The 16.04 installer works with 16.10. | |
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb | |
dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb | |
apt-get update | |
apt-get install cuda -y |
from __future__ import print_function, division | |
import datetime as dt | |
import pandas as pd | |
import numpy as np | |
import scipy.optimize as sopt | |
def gradebook(): | |
columns = ("Assignment", "Due", "Grade", "Weight") |
library(MDPtoolbox) | |
library(Matrix) | |
library(ggplot2) | |
library(grid) | |
library(gridExtra) | |
library(doMC) | |
cores <- detectCores() - (detectCores() / 2) / 2 | |
registerDoMC(cores=cores) | |
set.seed(1234) |
# -*- coding: utf-8 -*- | |
__author__ = "David Shinn" | |
__license__ = "MIT" | |
from collections import defaultdict | |
import itertools | |
import os | |
import pdb | |
import numpy as np | |
import pandas as pd |
#!/bin/bash | |
CORES=7 | |
OUTPUT=${OUTPUT:-results} | |
array=( | |
AssignmentTwo | |
ContinuousPeaksTest | |
CountOnesTest | |
FlipFlopTest |