sloria / konch

Configures your Python shell.
https://konch.readthedocs.io/
MIT License
406 stars 18 forks source link

Preview unauth'd files #59

Closed sloria closed 5 years ago

sloria commented 5 years ago

Example:

konch ❯ konch
"/Users/sloria/projects/python-projects/konch/.konchrc" is blocked.

**********************************************

# -*- coding: utf-8 -*-
# vi: set ft=python :
import os

import konch
from test_konch import env
import IPython
import bpython
import ptpython

konch.config(
    {
        "context": {
            "konch": konch,
            "testenv": env,
            "os": os,
            "IPython": IPython,
            "bpython": bpython,
            "ptpython": ptpython,
        },
        "prompt": "[konch] >>> ",
        "ipy_colors": "linux",
        "ipy_autoreload": True,
        "ptpy_vi_mode": True,
        "context_format": "full",
    }
)

**********************************************

Verify the file's contents and run `konch allow` to approve it.