Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Showing posts with label python3. Show all posts
Showing posts with label python3. Show all posts

Saturday, September 18, 2021

Google Colab: Open, Read and Print text file from Google Drive

.

OBJECTIVE:

1) Mount Google Drive to Google Colab Notebook

2) Open and write data to text file in Google Drive.

3) Open, read and print text file data. 

.


CODES:

Mount


Open and write data


Open, read and print data

.

REFERENCE:

.
.
.
.

Google Colab: Run Python with Jupyter Notebooks from Google Drive


 

.

Google Colab notebooks are Jupyter notebooks that run in the cloud and are highly integrated with Google Drive, making them easy to set up, access, and share.

.

STEPS:

1) Browse http://drive.google.com

2) Click New/More...



3) Click Connect More Apps



4) Type Colaboratory to connect more apps



5) Click Install



6) Once the app has been successfully installed, we should be able to run it from the Google DriveAdd Menu.


7) The following is a python example in the colab window.



.

VISIT:

.

NEXT:

Google Colab: Open, Read and Print text file from Google Drive,
.







Download JUPYTERLAB portable

 

.

DOWNLOAD:

PJupyter Lab

Jupyter Portable is a portable version of Jupyter Lab for Windows.


jupyterlab 3.1.0 - python 3.9.6

requirement : Windows 8.1 and newer

94 Mo

.

DOWNLOAD:

jupyterlab 3.0.16 - python 3.8.10

requirement : Windows 7 and newer

84 Mo


"Jupyter Lab is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text (with Latex and Markdown support). Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more." jupyter website


Data Science enthousiasts : a complete environment ready to use (Numpy, Matplotlib, SciPy...)

Computer Science Teachers : create lessons, exercises, assignments... and share them

Python learners : write your code (basic code, graphs, data visualization...) and test it right inside your document.

Jupyter Portable stays in a single folder that you can put on your computer or any portable device (USB key, memory stick, portable hard drive...). In that folder , you have everything you need to run Jupyter Lab on the computer your are using.


How to launch Jupyter Portable ?

Go the the Python Portable folder and double-click on "jupyter-portable.exe". A green icon will appear in the system tray (next to the clock). Left or right click on that icon and click on "Open".


How to close Jupyter Portable ?

Left or right click on the green icon and click on "Close".


How do I uninstall Jupyter Portable ?

As everything stays in a single fodler, you just have to delete the Jupyter Porotable folder. Easy!

.

REFERENCE:

https://www.portabledevapps.net/jupyter-portable.php


Wednesday, October 3, 2018

Error: Brew update Error: Xcode alone is not sufficient


Problem:
While running brew update  command, mac responded with error message:

Brew update Error: Xcode alone is not sufficient...
Install the Command Line Tools:
  xcode-select --install


Solution:

Run the command:
  xcode-select --install




Tuesday, October 2, 2018

How To Install Python On Mac


1) The latest version of Mac OS X, High Sierra, comes with Python 2.7 out of the box.

2) You do not need to install or configure anything else to use Python 2. These instructions document the installation of Python 3.

3) The version of Python that ships with OS X is great for learning, but it’s not good for development. The version shipped with OS X may be out of date from the official current Python release, which is considered the stable production version.

4) Before installing Python, you’ll need to install GCC. GCC can be obtained by downloading XCode, the smaller Command Line Tools (must have an Apple account) or the even smaller OSX-GCC-Installer package.

Note:
If you already have XCode installed, do not install OSX-GCC-Installer. In combination, the software can cause issues that are difficult to diagnose.

Note:
If you perform a fresh install of XCode, you will also need to add the commandline tools by running xcode-select --install on the terminal.

5) Install Homebrew,

5.1) open Terminal or your favorite OSX terminal emulator and run.

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

5.2) Once you’ve installed Homebrew, insert the Homebrew directory at the top of your PATH environment variable. You can do this by adding the following line at the bottom of your ~/.profile file

export PATH=/usr/local/bin:/usr/local/sbin:$PATH

6) install Python 3

$ brew install python

Note:
Since Mac is pre-bundled with Python 2, your new python and its pip executable may require number 3 after their names

ie

python3

pip3


REFERENCE:
https://docs.python-guide.org/starting/install3/osx/