- Execute
cf pushin directory where manifest.yml is - Of course you can use pip install with the buildpack, then you need a requiremens.txt instead of environment.yml see cf python buildpack docs
| Install pyenv on Ubuntu 18.04 + fish shell | |
| - Install the packages required to compile Python | |
| $ sudo apt-get update; sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev | |
| - Download pyenv code from github | |
| $ git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
| - Define environment variable PYENV_ROOT to point to the path where pyenv repo is cloned | |
| $ echo "set --export PYENV_ROOT $HOME/.pyenv" > ~/.config/fish/conf.d/pyenv.fish |
| # (c) Matthew Wardrop 2019; Licensed under the MIT license | |
| # | |
| # This script provides the ability to run a notebook in the same Python | |
| # process as this script, allowing it to access to variables created | |
| # by the notebook for other purposes. In most cases, this is of limited | |
| # utility and not a best-practice, but there are some limited cases in | |
| # which this capability is valuable, and this script was created for | |
| # such cases. For all other cases, you are better off using the | |
| # `nbconvert` execution API found @: | |
| # https://nbconvert.readthedocs.io/en/latest/execute_api.html |
| # Add to spacemacs-configuration-layers: | |
| # theming | |
| # doom-modeline | |
| # Add to dotspacemacs-excluded-packages | |
| # spaceline | |
| # Set: | |
| # dotspacemacs-mode-line-theme 'vanilla |
Setting up a remote interpreter on PyCharm is awfully unintuitive. I've pared it down to what I think is the minimal number of steps, and leaves the fewest number of deployment configurations and Python interpreters lying around. This is designed for my specific configuration (specifically PyTorch); adapt as needed.
- (Optional) Add virtual environment path to excluded files
- From Welcome Page, go to Configure > Settings > Build, Execution, Deployment > Deployment > Options
- Add virtualenv path. For example, if you always have the project's virtualenv in
.env, add ";.env" to the "Exclude items by name" field
| #!/usr/bin/env bash | |
| # | |
| # Launch emacs from emacs.d folder you placed anywhere. | |
| # | |
| # @author gongqijian@gmail.com | |
| # @created 2016-07-21 | |
| # @version 0.6 | |
| # @last-updated 2022-12-15 15:51:23 +0800 | |
| # |
| from flask import Flask, request, jsonify, json, abort | |
| from flask_cors import CORS, cross_origin | |
| import pandas as pd | |
| app = Flask(__name__) | |
| cors = CORS(app) | |
| app.config['CORS_HEADERS'] = 'Content-Type' |
This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)
A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly.
In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers.
This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa in the command-line.
| [HEADER] | |
| Title=Ahk Standard Library Collection | |
| Home=http://www.autohotkey.com/board/topic/50834-ahk-standard-library-collection-2010-sep-gui-libs-100/ | |
| Location=http://autohotkey.net/~Tuncay/ahkstdlib/ahkstdlib.zip | |
| Creator=Tuncay | |
| Timestamp=20150203 | |
| AhkTypeCompatible=Basic | |
| AhkTypeCompatibleLocation=http://www.autohotkey.com/ | |
| CheckForUpdate=-1 |