This tutorial assumes that you use vim plug as a package manager.
Add the following to vimrc (using plug PM):
Plug 'vyperlang/vim-vyper'
Source vimrc
| ## Run it on jupyter notebook for interactive panel | |
| import param as pm | |
| import panel as pn | |
| class A(pm.Parameterized): | |
| a = pm.Number(2) | |
| class B(pm.Parameterized): | |
| def __init__(self, a:A, **params): | |
| super().__init__(**params) |
Check that your package name is available by searching on PyPi
https://pypi.org
Register on PyPi and generate an API token:
https://pypi.org
Config Poetry with your API token
| # Put the following in vim config before loading the nerdcommenter plugin: | |
| `let g:NERDCustomDelimiters = {'javascript': { 'left': '//', 'right': '', 'leftAlt': '{/* ', 'rightAlt': ' */}' }}` | |
| # Then, when working on your file, press `<leader>ca` to switch between primary and alternative delimiters. |
| import param as pm | |
| import panel as pn | |
| pn.extension() | |
| class Protocol(pm.Parameterized): | |
| display_level = pm.Integer(default=1, bounds=(0, 2), step=1, precedence=2) | |
| target_apy = pm.Number(0.15, bounds=(0,1), precedence=1) | |
| total_curve_pool_tvl = pm.Number(1e7, bounds=(0,None), precedence=0) | |
| def __init__(self): |
| """ | |
| Run this in a Jupyter Cell | |
| """ | |
| import param as pm | |
| import pandas as pd | |
| import numpy as np | |
| import hvplot.pandas | |
| class A(pm.Parameterized): |
I've been using Fish shell for years which is great and all, but one thing that has got me frustrated is using it with .env files.
When attempting to run source .env in a project, I usually encounter this problem:
.env (line 2): Unsupported use of '='. In fish, please use 'set KEY value'.
from sourcing file .env
source: Error while reading file '.env'