Why was “scipy.misc” removed, and what’s next?

Miscellaneous routines in scipy included convenient functions. This article cover the removal of this feature. Table of content Why was _Miscellaneous routines_ removed from SciPy? A Very Brief Introduction to scipy.datasets — What does this implement/fix ? Pooch and scipy.datasets partnership Why was _Miscellaneous routines_ removed from SciPy? Back in the olden days the Miscellaneous …

Why was “scipy.misc” removed, and what’s next? Read More »

NeuroJSON: A Potential Neuro-Imaging Library For Python

NeuroJson, founded by Qianqian Fang, is an open-source project which aims to create easy-to-adopt, easy-to-extend, and preferably human-readable data formats to help disseminate and exchange Neuro-imaging data (and scientific data in general). It primarily uses JSON and binary JSON (specifically, UBJSON UBJSON derived Binary JSON format) as the underlying data exchange files. Table of content …

NeuroJSON: A Potential Neuro-Imaging Library For Python Read More »

Decoding Symmetric Indefinite Matrices In Python

This article is a gentle introduction to symmetric indefinite matrices in Python Table of content What are symmetric indefinite matrices andwhere are they used? Implementing symmetric indefinite matrices (SYMMQL) in python Comparing convergence rate of SYMMLQ, CG (Conjugate Gradient), and MINRES by solving the following classical symmetric indefinite system What are symmetric indefinite matrices and …

Decoding Symmetric Indefinite Matrices In Python Read More »

Biosim4: Framework For Evolution With Neural Networks

Biosim4 is a project in which there’s a 2-dimensional world where creatures with neural brains live in it. They have genomes (complete genetic information) that they pass on from one generation to the next generation, And these creatures have neural network brains that govern their behaviour. This project aims to try setting up the conditions …

Biosim4: Framework For Evolution With Neural Networks Read More »

An Overview of Python Terminal Plotting Libraries

There exist many terminal plotting libraries. In Python there are some 3-4 main ones. In this post we’ll have an overview of the libraries. asciichartpy It is a node-js inspired lib with live plotting enabled. Disregard the nodejs readme termplotlib Just a wrapper over gnuplot bashplotlib Solid minimal and impressive pure-python monochrome lib terminalplot No …

An Overview of Python Terminal Plotting Libraries Read More »

How To Have Django Packages in Flask

Django packages in Flask seems like a far-away dream, but shopyo 4.6.0 allows you to install Shopyo apps from pypi. What is Shopyo? Shopyo implements Django functionalities such as the admin panel etc by using existing Flask packages. But, it also implements Django-specifics like the collectstatic command, migrations, apps, even new concepts like boxes etc. …

How To Have Django Packages in Flask Read More »

How to integrate P5JS with Flask-SocketIO

P5Js is an implementation of processing.org’s library in JavaSript. It can be thought of as a canvas management library. Integrating such a library with a common backend like Flask unlocks amazing opportunities. Canvas is even better if sockets.io is involved for real-time events. This post shows how to integrate these 3 libraries using flask-socketio. Main …

How to integrate P5JS with Flask-SocketIO Read More »

Build A Note App In Flask As Fast As It Can Get (Using Shopyo)

Shopyo is a framework to get started with Flask really quick. It includes several libraries to get started by default. In this tutorial we will build a simple app to get started with. We used it for FlaskCon 2021 [site, codebase]. First steps The first step is to install the library. python3.9 -m venv venv …

Build A Note App In Flask As Fast As It Can Get (Using Shopyo) Read More »

Notes of Get your resources faster, with importlib.resources by Barry Warsaw

Talk notes thepkg/ # is a package since has __init__.py __init__.py a.py b.py data/ sample.dat You need to get data files (templates, certifs etc) from your package You do import thepkg from pathlib import Path pkg = Path.(thepkg.__file__).parent path = pkg / ‘data’ / ‘sample.dat’ Problem as __file__ not necessarily a real file on system …

Notes of Get your resources faster, with importlib.resources by Barry Warsaw Read More »

How to Integrate Tinymce 5 with Flask (with csrf)

This article shows how to integrate Tinymce 5 with Flask even including csrf protection! Text area <textarea id=”content”></textarea> Tinymce <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/tinymce/5.10.2/tinymce.min.js”></script> <script type=”text/javascript”> tinymce.init({ selector: ‘#content’, plugins: [ ‘advlist autolink link image imagetools lists charmap print preview hr anchor pagebreak spellchecker’, ‘searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking’, ‘save table contextmenu directionality …

How to Integrate Tinymce 5 with Flask (with csrf) Read More »

Python-efl Custom Elementary Widget

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-9-custom-elementary-widgets-020116/ ”’ import efl.elementary as elm from efl.elementary.window import StandardWindow from efl.elementary.frame import Frame from efl.elementary.image import Image from efl.evas import EVAS_HINT_EXPAND, …

Python-efl Custom Elementary Widget Read More »

Python-efl Generic List

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/programming/blogs/pyefl-tutorial-8-genlist-120215/ ”’ import efl.elementary as elm from efl.elementary.window import StandardWindow from efl.elementary.genlist import Genlist, GenlistItem, GenlistItemClass from elmextensions import StandardPopup ListItems = …

Python-efl Generic List Read More »

Python-efl Lists

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/pyefl-tutorial-7-lists-111115/ ”’ import efl.elementary as elm from efl.elementary.window import StandardWindow from efl.elementary.list import List from elmextensions import StandardPopup from efl.evas import EVAS_HINT_EXPAND, …

Python-efl Lists Read More »

Python-efl Elm Extensions

Python-EFL is a wrapper around the Enlightenment GUI kit. This series of tutorials is an update from the original author. To follow this tutorial, download/clone this repo and pip install it ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-6-elmextensions-110115/ ”’ ”’ extentions ”’ AUTHORS = “”” <br> <align=center> <hilight>Jeff …

Python-efl Elm Extensions Read More »