Skip to main content

magic command for prohibit using global variables in Jupyter Notebook

Project description

noglobal-magic

Tests PyPI version

For Jupyter Notebook user's, noglobal-magic find global variables in a local scope.

With:

  • No need to wait executing a function
  • flake8 style ignoring-error annotation (# noqa)
  • no_global magic command makes raise error, and warn_global tells a just warning

Installation

Make sure you've this noglobal-magic (And the Python package pyflakes).

pip install noglobal-magic

How to use

In a cell on Jupyter Notebook, load and activate this extension:

%load_ext noglobal_magic
%no_global

You've ready to enjoy coding.

Let's see in colab how it works.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noglobal-magic-0.1.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

noglobal_magic-0.1.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file noglobal-magic-0.1.3.tar.gz.

File metadata

  • Download URL: noglobal-magic-0.1.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.10 Linux/5.4.0-1040-azure

File hashes

Hashes for noglobal-magic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 141714e08cab8f6e3ef45c267949c549440834a4951f41df612134dc5dbd6a23
MD5 7930e4aadf65c3d82f209f034f086c99
BLAKE2b-256 a74502c865e207daead74294f9d1eb52d80743f31324366f8ad0e929a8f9b1d8

See more details on using hashes here.

File details

Details for the file noglobal_magic-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: noglobal_magic-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.10 Linux/5.4.0-1040-azure

File hashes

Hashes for noglobal_magic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 afb10a78058bcddcfbd48973f095474612fc38f5fa68647c0d7110b3f53eb6e2
MD5 f24012f1f99deb8daf3811674a60cc58
BLAKE2b-256 c4d29ce659fd2b5a2c3da37e2ed00dc2cd17bc35b774052da5ebb05fc3c9a463

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page