Skip to content

Instantly share code, notes, and snippets.

View fomightez's full-sized avatar

Wayne's Bioinformatics Code Portal fomightez

View GitHub Profile
@fomightez
fomightez / input_output_access_demo.ipynb
Created December 12, 2019 21:18
input_output_access_demo for jupyter notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / aUsing base64 images persistently in Jupyter notebooks - README.md
Last active September 13, 2022 18:57
Using base64 images persistently in Jupyter notebooks, even in MARKDOWN

In relation to here, it seems the solution here now works.

(I have outlined and even shared code that's part of this process in the 'In Markdown cells' section of my stackoverflow answer here.)

@fomightez
fomightez / Adjusting Figure Caption Text Position.ipynb
Created February 7, 2020 19:40
Adjusting Figure Caption Text Position
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / Illustrating controlling plot display relative out streams.ipynb
Last active February 26, 2020 16:21
Illustrating controlling plot display relative out streams
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / useful_ipython_or_commandline_to_python_snippets.py
Last active August 12, 2025 12:30
Useful snippets and examples for when converting command line commands from Jupyter/IPython back to Pure Python
#Useful examples for when converting command line commands from Jupyter/IPython back to Pure Python
# This is party for when need to speed up a `.ipy` script running. It will run much faster as `.py` than as `.ipy` if there
# are a lot of calls to command line / shell commands because saves time by not spawning new shell instance for
# each. (`.ipy` version great for quicker development and proto-typing but `.py` MUCH FASTER for running.)
# The Python versions also have the advantage that you can use them inside functions (I think) because don't have problem like
# with `!cp fn unsanitized_{fn}`or `%store` where actually run in global namespace which cannot see Python variable `fn`
# local to the function.
# RELATED NOTE: You can use the IPython `history` (via the "hist command (with -n to remove line numbers)") to
# help convert `.ipy` code or Jupyter code with exclamation marks and shell commands BACK TO PYTHON, see
# https://stackoverflow.com/a/1040640/8508004 (especially also see the comment by Mic
from IPython.display import clear_output
clear_output()
print("")
print("")
print(" __ _ _ __ __ _ ____ _ _ _ _ ")
print(" / \\ / )( \\ / _\\ ( ( \\(_ _)/ )( \\( \\/ ) ")
print(" ( O )) \\/ (/ \\/ / )( ) \\/ (/ \\/ \\ ")
print(" \\__\\)\\____/\\_/\\_/\\_)__) (__) \\____/\\_)(_/ ")
print(" __ _ _ ____ ____ __ _ _ ____ __ _ ____ ____ ____ ")
print(" / _\\ / )( \\( __)/ ___) / \\ ( \\/ )( __)( ( \\( __)/ ___)/ ___)")
@fomightez
fomightez / Timer ipywidget using threads.ipynb
Last active March 15, 2021 16:19
Timer ipywidget using threads
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / demo of rich text formatter in jupyter notebooks.ipynb
Last active August 23, 2021 19:53
demo of rich text formatter in a jupyter notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / testing script to fix sentence case.ipynb
Created January 12, 2021 18:32
notebook for testing sentence case code.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / README.md
Last active July 15, 2021 17:15
previous pdbsum-binder interactions run result

This is to be used in a notebook in sessions launched from my pdbsum-binder.