A clean installation of Ubuntu 18.04.02 LTS was used.
This gist is an extension to the official docs, adding missing parts and instructions.
follow the pre-installation actions on:
A clean installation of Ubuntu 18.04.02 LTS was used.
This gist is an extension to the official docs, adding missing parts and instructions.
follow the pre-installation actions on:
Did you ever had to debug some large cell in a Jupyter notebook? In the below I share my experience on the subject. We'll review the classical methods for debugging notebooks, and finally I'll show how to set breakpoints in PyCharm for code being execute in a jupyter notebook, and benefit of the comfort of a real Python IDE for debugging.
Before I actually describe what Pycharm can do, we quickly review the jupyter commands for debugging.
There are several approaches
| set cut_paste_input [stack 0] | |
| version 11.1 v1 | |
| push $cut_paste_input | |
| Group { | |
| name ACES_OT | |
| tile_color 0xd4282ff | |
| label "\[? \[numvalue presets]==0 \"\" \[value presets]]" | |
| note_font "Bitstream Vera Sans Bold Bold Bold Bold Bold Bold Bold" | |
| note_font_color 0xffffffff | |
| selected true |
| import logging | |
| import re | |
| import collections | |
| import struct | |
| from StringIO import StringIO | |
| import codecs | |
| import binascii | |
| import math | |
| import sys |
| import maya.cmds as mc | |
| def _null(*args): | |
| pass | |
| class _shelf(): | |
| '''A simple class to build shelves in maya. Since the build method is empty, | |
| it should be extended by the derived class to build the necessary shelf elements. |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
| #!/bin/bash | |
| # Run as root | |
| if [ "$#" -ne 1 ]; | |
| then | |
| echo "Usage: <script> <username>" | |
| exit 1 | |
| fi | |
| USER=$1 | |
| [email protected] |
| #!/usr/bin/env python | |
| # -*- coding: ascii -*- | |
| #: see: https://github.com/dasmith/stanford-corenlp-python/blob/master/jsonrpc.py | |
| """ | |
| JSON-RPC (remote procedure call). | |
| It consists of 3 (independent) parts: | |
| - proxy/dispatcher | |
| - data structure / serializer | |
| - transport |