memeplex / base16-prompt-toolkit Goto Github PK
View Code? Open in Web Editor NEWBase16 templates for prompt-toolkit and ipython
License: MIT License
Base16 templates for prompt-toolkit and ipython
License: MIT License
Can you add a license? The README here recommends MIT: https://github.com/chriskempson/base16-templates-source
#4 hasn't actually been fixed as the base16 files haven't been updated. And even after changing it manually I still have this issue: prompt-toolkit/python-prompt-toolkit#766 and was wondering whether something can be changed here to make it work properly?
I'm trying to get control of colors on my ipython prompt so I gave this a try. But it fails with a complaint about a missing module. Any ideas on what is going wrong?
MT1$ ipython [TerminalIPythonApp] ERROR | Exception while loading config file /home/gb/.ipython/profile_default/ipython_config.py Traceback (most recent call last): File "/home/gb/miniconda3/envs/jupyter/lib/python3.6/site-packages/traitlets/config/application.py", line 562, in _load_config_files config = loader.load_config() File "/home/gb/miniconda3/envs/jupyter/lib/python3.6/site-packages/traitlets/config/loader.py", line 457, in load_config self._read_file_as_dict() File "/home/gb/miniconda3/envs/jupyter/lib/python3.6/site-packages/traitlets/config/loader.py", line 489, in _read_file_as_dict py3compat.execfile(conf_filename, namespace) File "/home/gb/miniconda3/envs/jupyter/lib/python3.6/site-packages/ipython_genutils/py3compat.py", line 198, in execfile exec(compiler(f.read(), fname, 'exec'), glob, loc) File "/home/gb/.ipython/profile_default/ipython_config.py", line 311, in <module> theme = importlib.import_module('base16.base16-monokai') File "/home/gb/miniconda3/envs/jupyter/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/gb/python/extensions/base16/base16-monokai.py", line 7, in <module> from prompt_toolkit.terminal.vt100_output import _256_colors ModuleNotFoundError: No module named 'prompt_toolkit.terminal' Python 3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 09:53:17)
That should allow purely declarative imports, as things are string IPython should be able to auto import them correctly.
It might be possible to have a shim that does the right things. I can give it a try for the shim.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.