pykwalify breaks output in jupyter notebook (python 2.7)
See original GitHub issueDuring __init__, pykwalify reloads sys module, which resets the stdout to the console.
This causes all output to be printed to the console instead of the jupyter notebook.
It is caused by the change in this commit.
Moreover, in this discussion, using reload(sys) and sys.setdefaultencoding is not recommended.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
jupyter notebook double output - Stack Overflow
I've fixed this by restarting the kernel and the re-loading the web page (i.e. F5).
Read more >What to do when things go wrong - The Jupyter Notebook
If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command...
Read more >How to fix Kernel Error or broken Python in Jupyter Notebook
TL;DW BELOW! If you delete or upgrade your python version, you might get a Kernel Error when trying to use Jupyter Notebooks !...
Read more >Installing the classic Jupyter Notebook interface
We recommend using the Anaconda distribution to install Python and Jupyter. ... Jupyter installation requires Python 3.3 or greater, or Python 2.7.
Read more >Python and Jupyter Notebook | Scientific Computing and Data
For example: $ module spider python/3.6.2 ... << output from stdout >> Using local port 8888 Jupyter Notebook is started on compute node...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@JoostJM Thanks for testing it. If you find any other issues reagrding utf-8 or ecnoding please open up a new issue.
Closing as fixed/resolved
@Grokzen Thanks! I tested using your branch ‘unstable’, and it worked, jupyter notebooks don’t break anymore.