Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When running Jupyter locally, your data files are typically sit on your local filesystem and can be read using the Python Standard Library; e.g.

...

In a cloud environment, your data files are now located in a cloud storage system ( such as Amazon S3 or GCP Cloud Storage. Access to cloud storage is usually via an API or library.

In the first release of Europa Notebooks, we are using Atlassian (attachment storage in your account), as the file storage layer.

To make working with files in Atlassian simple, we have introduced AtlasFS. AtlasFS works just like the Python Standard Library. The above file operation, in AtlasFS, is written as:

Code Block
from atlasfs import AtlasFS
fs = AtlasFS()

with fs.open('myfile.txt', 'r') as f:
  print(f.read())

Writing files is also similar to standard Python:

Code Block
with fs.open('output.txt', 'w') as f:
  f.write('Hello, World!')

We hope this approach is more intuitive than trying to remember custom APIs.

The credentials to access your storage layer is automatically provided since a notebook runs in your own private server, which can only be initiated from your authenticated Atlassian session.