How do I get PyCharm to show method signatures and documentation in the Python/IPython console and the editor?
In pycharm you have ctrl-q (or ctrl-j on a mac) for a quick-doc of the function under the cursor.
In pycharm you have ctrl-q (or ctrl-j on a mac) for a quick-doc of the function under the cursor.
Mark the content of the cell and press Ctrl+ /. It will comment out all lines in that cell. Repeat the same steps to uncomment the lines of your cell.
I know it may not be what you’re looking for (this example is not good for working on notebooks that need to be run in multiple environments, e.g. shared), but I put the following in a file called ipython_config.py in my .ipython folder. c.InteractiveShellApp.exec_lines = [‘%matplotlib inline’, ‘import numpy as np’, ‘import scipy.constants as scc’, … Read more
Convert it into a single Zip file and upload that. to unzip the folder use the code down bellow import zipfile as zf files = zf.ZipFile(“ZippedFolder.zip”, ‘r’) files.extractall(‘directory to extract’) files.close() However, sometimes you may need to download several files from notebook. There are several ways to do this but the easiest way is to … Read more
Finally tracked down the problem: it was a Linux one to do with enabling Numlock. As Numlock was not turned on, the 0-key on the number keypad was acting as a toggle for insert mode. To turn on Numlock, I had to install numlockx and then change login window preferences to enable it, e.g. see … Read more
History is store on $(ipython locate)/profile_default/history.sqlite by default. You can remove the file, and or do any operation you want on it (secure erase, etc..). It’s an sqlite file so you can load it with any sqlite program and do query on it. Check in $(ipython locate)/profile_default/ and other $(ipython locate)/profile_xxx that you do not … Read more
There appears to be limited non-GitHub options for sharing notebooks. You can still share a link directly from Google’s colaboratory. This will allow you to: Upload your file Share the link with various permissions Any Google user can view (and optionally edit) your notebook. See also other options: binder: sharing notebooks from a GitHub repo; … Read more
As Thomas K. suggested, here is the way to restart the ipython kernel from your keyboard: import os os._exit(00)
To add custom CSS to a particular notebook you can use HTML. Add and execute a regular Python code cell with the following content: from IPython.core.display import HTML HTML(“”” <style> // add your CSS styling here </style> “””) Alternatively (thanks @abalter) use the %%html cell magic: %%html <style> // add your CSS styling here </style>
After a brute force search, Jupyter stores kernel info for OS X in /Users/${USER}/Library/Jupyter/kernels. This list got copied across from my .ipython/kernels list hence renaming it made no difference. Removing /Users/${USER}/Library/Jupyter/kernels fixes the issue. This is the reference I was looking for: http://jupyter-client.readthedocs.org/en/latest/kernels.html#kernelspecs